From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: gnus doesn't encode non-ascii attachment filenames Date: Tue, 14 Feb 2006 11:13:00 +0900 Message-ID: References: <87bqxbwxoq.fsf@emacsfans.org> <87irriras8.fsf@emacsfans.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1139886843 5729 80.91.229.2 (14 Feb 2006 03:14:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Feb 2006 03:14:03 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 14 04:13:59 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F8qdT-0001m0-4X for ged-emacs-devel@m.gmane.org; Tue, 14 Feb 2006 04:13:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F8qdR-0002CJ-Nw for ged-emacs-devel@m.gmane.org; Mon, 13 Feb 2006 22:13:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F8qKS-0002Jb-RV for emacs-devel@gnu.org; Mon, 13 Feb 2006 21:54:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F8qJK-00015J-O0 for emacs-devel@gnu.org; Mon, 13 Feb 2006 21:53:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F8pyh-000144-0B for emacs-devel@gnu.org; Mon, 13 Feb 2006 21:31:43 -0500 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1F8plJ-0006et-79; Mon, 13 Feb 2006 21:17:53 -0500 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id k1E2D2im014743; Tue, 14 Feb 2006 11:13:02 +0900 Original-Received: from etlken (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id k1E2D2NR007419; Tue, 14 Feb 2006 11:13:02 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1F8pga-0007BC-00; Tue, 14 Feb 2006 11:13:00 +0900 Original-To: Zhang Wei In-reply-to: <87irriras8.fsf@emacsfans.org> (message from Zhang Wei on Tue, 14 Feb 2006 09:25:59 +0800) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:50499 Archived-At: In article <87irriras8.fsf@emacsfans.org>, Zhang Wei writes: [...] > Sorry, false alarm. This bug is only with the emacs-unicode-2 > branch. No problem with emacs 22. > The difference of internal character representation between emacs23 > and emacs22, makes gnus can't handle non-ascii attachment filename > correctly. > To generate a rfc2231 encoded filename such as "%d6%d0%ce%c4", > function (following-char) returns "d6" for the first char of the > filename "d6d0cec4" in emacs22, while in emacs23 this function returns > "3fffd6". Ah, I see. > This is an ugly hack to solve this problem: For Emacs 23, we can have a better/simpler fix. But, could someone tell me the maintenance policy of Gnus codes? Should we modify codes in cvs HEAD so that it works also with emacs-unicode-2 (perhaps with version check here and there)? Or, should we directly modify codes in cvs emacs-unicode-2? --- Kenichi Handa handa@m17n.org