From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61194 Path: news.gmane.org!not-for-mail From: Boris Samorodov Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus: incorrect conversion of Subject and From field from utf-8 to koi8-r Date: Tue, 18 Oct 2005 22:20:37 +0400 Message-ID: <20421354@serv3.int.kfs.ru> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1129687903 24052 80.91.229.2 (19 Oct 2005 02:11:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Oct 2005 02:11:43 +0000 (UTC) Cc: Kenichi Handa , rms@gnu.org, ding@gnus.org Original-X-From: ding-owner+m9726@lists.math.uh.edu Wed Oct 19 04:11:40 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ES3PJ-0001Wr-Gv for ding-account@gmane.org; Wed, 19 Oct 2005 04:10:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1ES3P0-0003dm-00; Tue, 18 Oct 2005 21:10:02 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1ERw50-000373-00 for ding@lists.math.uh.edu; Tue, 18 Oct 2005 13:20:54 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1ERw4y-0001NB-Mk for ding@lists.math.uh.edu; Tue, 18 Oct 2005 13:20:54 -0500 Original-Received: from kfs.kfs.ru ([62.183.117.194] helo=ns.kfs.ru) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ERw4v-0002OB-00 for ; Tue, 18 Oct 2005 20:20:49 +0200 Original-Received: from bsam by ns.kfs.ru with local (Exim 4.52 (FreeBSD)) id 1ERw4j-0009GE-Tc; Tue, 18 Oct 2005 22:20:37 +0400 Original-To: Katsumi Yamaoka In-Reply-To: (Katsumi Yamaoka's message of "Sat, 15 Oct 2005 19:06:52 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61194 Archived-At: On Sat, 15 Oct 2005 19:06:52 +0900 Katsumi Yamaoka wrote: > >>>>> In Handa-san wrote: > >> 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? > >>> 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. > I agree. Thank you for clarifying it. I've committed your > patch to cvs.gnus.org with small modifications. It will be > propagated to Emacs soon. This is to confirm that the latest revision 7.43 from HEAD for gnus/lisp/rfc2047.el from gnus cvs is fine with Subject and From fields. Thank you all who helped to investigate and unbreak the case! Should I confirm the success story anywhere else (maybe bug-gnu-emacs@)? WBR -- bsam