From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61160 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.pretest.bugs,gmane.emacs.gnus.general 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 Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1129228356 18496 80.91.229.2 (13 Oct 2005 18:32:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Oct 2005 18:32:36 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Ding List Original-X-From: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Thu Oct 13 20:32:28 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EQ7nH-0000ex-5b for gebp-emacs-pretest-bug@gmane.org; Thu, 13 Oct 2005 20:27:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EQ7nG-0007lQ-Hd for gebp-emacs-pretest-bug@gmane.org; Thu, 13 Oct 2005 14:27:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EQ7nC-0007hZ-4I for emacs-pretest-bug@gnu.org; Thu, 13 Oct 2005 14:27:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EQ7nA-0007fE-Bw for emacs-pretest-bug@gnu.org; Thu, 13 Oct 2005 14:27:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EQ7n9-0007f3-6l for emacs-pretest-bug@gnu.org; Thu, 13 Oct 2005 14:27:00 -0400 Original-Received: from [134.60.1.1] (helo=mail.uni-ulm.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EQ7n8-0001Y0-UI for emacs-pretest-bug@gnu.org; Thu, 13 Oct 2005 14:26:59 -0400 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.4/8.13.4) with ESMTP id j9DIQsYw000955; Thu, 13 Oct 2005 20:26:54 +0200 (MEST) Original-Received: by bridgekeeper.physik.uni-ulm.de (Postfix, from userid 170) id 41D6A10AFA; Thu, 13 Oct 2005 20:26:54 +0200 (CEST) Original-To: "Boris B. Samorodov" Mail-Followup-To: "Boris B. Samorodov" , emacs-pretest-bug@gnu.org X-Face: P05mdcZT&lL[-s2=mw~RsllZ0zZAb?vdE}.s (Boris B. Samorodov's message of "Thu, 13 Oct 2005 20:56:24 +0400") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-DCC-SIHOPE-DCC-3-Metrics: gemini 1085; Body=3 Fuz1=3 Fuz2=3 X-BeenThere: emacs-pretest-bug@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for CVS Emacs." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Errors-To: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.pretest.bugs:9542 gmane.emacs.gnus.general:61160 Archived-At: 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: =3D?UTF-8?B?W2lwdC5ydSAjMTYzXSDQkNCy0YLQvtCe0YLQstC10YI6INCc0KHQ= mjog0KHQ?=3D =3D?UTF-8?B?nyDRgtC10YHRgg=3D=3D?=3D > ----- > > In command-line mode I can do... > > $ echo "W2lwdC5ydSAjMTYzXSDQkNCy0YLQvtCe0YLQstC10YI6INCc0KHQmjog0KHQnyDRg= tC10YHRgg=3D=3D" | base64 -d | iconv -f utf-8 > > ...and receive the answer: > > [ipt.ru #163] =D0=90=D0=B2=D1=82=D0=BE=D0=9E=D1=82=D0=B2=D0=B5=D1=82: =D0= =9C=D0=A1=D0=9A: =D0=A1=D0=9F =D1=82=D0=B5=D1=81=D1=82 > > But gnus (from cvs as emacs) shows the next line... > > Subject: [ipt.ru #163] =D0=90=D0=B2=D1=82=D0=BE=D0=9E=D1=82=D0=B2=D0=B5= =D1=82: =D0=9C=D0=A1=D0=9A: =D0=A1=D0=9F =D1=82=D0=B5=D1=81=D1=82 > > ...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 > =3D?UTF-8? =3D?UTF-8? parts of the Subject. Whitespace between adjacent encoded words have to be ignored according to RFC 2047: ,----[ rfc2047.txt ] | (=3D?ISO-8859-1?Q?a?=3D =3D?ISO-8859-1?Q?b?=3D) (ab) |=20 | White space between adjacent 'encoded-word's is not | displayed. |=20 | (=3D?ISO-8859-1?Q?a?=3D =3D?ISO-8859-1?Q?b?=3D) (ab) |=20 | Even multiple SPACEs between 'encoded-word's are ignored | for the purpose of display. |=20 | (=3D?ISO-8859-1?Q?a?=3D (ab) | =3D?ISO-8859-1?Q?b?=3D) |=20 | 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. --=20 ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/