Gnus development mailing list
 help / color / mirror / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: rms@gnu.org, bsam@ipt.ru, ding@gnus.org, handa@m17n.org
Subject: Re: gnus: incorrect conversion of Subject and From field from utf-8 to koi8-r
Date: Sat, 15 Oct 2005 17:50:31 +0900	[thread overview]
Message-ID: <E1EQhkN-0001aF-00@etlken> (raw)
In-Reply-To: <b4mll0vfake.fsf@jpl.org> (message from Katsumi Yamaoka on Sat, 15 Oct 2005 17:28:49 +0900)

In article <b4mll0vfake.fsf@jpl.org>, Katsumi Yamaoka <yamaoka@jpl.org> writes:
> I confirmed Handa-san's patch is 99% perfect and doesn't lower
> the performance.  However I hesitate to commit it to Gnus
> because I found out the `MUST NOT' phrase in RFC2047 as follows:

> 5. Use of encoded-words in message headers

> [...]

>    The 'encoded-text' in an 'encoded-word' must be self-contained;
>    'encoded-text' MUST NOT be continued from one 'encoded-word' to
>    another.  This implies that the 'encoded-text' portion of a "B"
>    'encoded-word' will be a multiple of 4 characters long; for a "Q"
>    'encoded-word', any "=" character that appears in the 'encoded-text'
>    portion will be followed by two hexadecimal characters.

> The encoded-words that Boris B. Samorodov presented comes just
> under this case.  Even so, should Gnus support such encodings?

>>>>>>  In <E1EQ6NU-000GJF-2s@bsam.ru>
>>>>>> 	"Boris B. Samorodov" <bsam@ipt.ru> wrote:

>>  Subject: =?UTF-8?B?W2lwdC5ydSAjMTYzXSDQkNCy0YLQvtCe0YLQstC10YI6INCc0KHQmjog0KHQ?= =?UTF-8?B?nyDRgtC10YHRgg==?=

This example doesn't violate the above restriction.  Each
'encoded-word' is surely "multiple of 4 characters long".

Please note that the above restriction is for
'encoded-text', not for the underlining coded character set.
So, I think the above document doesn't prohibit diviging
UTF-8 byte sequence at non-character boundary.

---
Kenichi Handa
handa@m17n.org



  reply	other threads:[~2005-10-15  8:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1EQHq4-0002rQ-EC@fencepost.gnu.org>
     [not found] ` <E1EQPSa-0006iC-00@etlken>
2005-10-14 16:51   ` Katsumi Yamaoka
2005-10-15  0:46     ` Kenichi Handa
2005-10-15  8:28       ` Katsumi Yamaoka
2005-10-15  8:50         ` Kenichi Handa [this message]
2005-10-15 10:06           ` Katsumi Yamaoka
2005-10-16  0:25             ` Kenichi Handa
2005-10-18 18:20             ` Boris Samorodov
2005-10-19  4:12               ` Katsumi Yamaoka
2005-10-19 20:16                 ` Richard M. Stallman
     [not found] <E1EQ6NU-000GJF-2s@bsam.ru>
2005-10-13 18:26 ` Reiner Steib

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1EQhkN-0001aF-00@etlken \
    --to=handa@m17n.org \
    --cc=bsam@ipt.ru \
    --cc=ding@gnus.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).