[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnus: incorrect conversion of Subject and From field from utf-8 to k
From: |
Reiner Steib |
Subject: |
Re: gnus: incorrect conversion of Subject and From field from utf-8 to koi8-r |
Date: |
Thu, 13 Oct 2005 20:26:54 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
On Thu, Oct 13 2005, Boris B. Samorodov wrote:
[ On emacs-pretest. Cc-ing Ding ]
> Symptoms:
>
> I do have a letter with the next Subject:
> -----
> Subject:
> =?UTF-8?B?W2lwdC5ydSAjMTYzXSDQkNCy0YLQvtCe0YLQstC10YI6INCc0KHQmjog0KHQ?=
> =?UTF-8?B?nyDRgtC10YHRgg==?=
> -----
>
> In command-line mode I can do...
>
> $ echo
> "W2lwdC5ydSAjMTYzXSDQkNCy0YLQvtCe0YLQstC10YI6INCc0KHQmjog0KHQnyDRgtC10YHRgg=="
> | base64 -d | iconv -f utf-8
>
> ...and receive the answer:
>
> [ipt.ru #163] АвтоОтвет: МСК: СП тест
>
> But gnus (from cvs as emacs) shows the next line...
>
> Subject: [ipt.ru #163] АвтоОтвет: МСК: СП тест
>
> ...which is wrong.
I don't see any difference. Maybe I'm misunderstanding what you mean.
> The bug appeared to be at illegal concatenation of
> =?UTF-8?<foo> =?UTF-8?<bar> parts of the Subject.
Whitespace between adjacent encoded words have to be ignored according
to RFC 2047:
,----[ rfc2047.txt ]
| (=?ISO-8859-1?Q?a?= =?ISO-8859-1?Q?b?=) (ab)
|
| White space between adjacent 'encoded-word's is not
| displayed.
|
| (=?ISO-8859-1?Q?a?= =?ISO-8859-1?Q?b?=) (ab)
|
| Even multiple SPACEs between 'encoded-word's are ignored
| for the purpose of display.
|
| (=?ISO-8859-1?Q?a?= (ab)
| =?ISO-8859-1?Q?b?=)
|
| Any amount of linear-space-white between 'encoded-word's,
| even if it includes a CRLF followed by one or more SPACEs,
| is ignored for the purposes of display.
`----
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/