From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63838 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.pretest.bugs,gmane.emacs.gnus.general Subject: Re: `.newsrc.eld' saves chinese group name in wrong coding Date: Thu, 19 Oct 2006 12:56:29 +0900 Organization: Emacsen advocacy group Message-ID: References: <87mz7tm2wn.fsf@furball.mit.edu> 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 1161230232 6672 80.91.229.2 (19 Oct 2006 03:57:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Oct 2006 03:57:12 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Zhang Wei , ding@gnus.org, Kenichi Handa Original-X-From: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Thu Oct 19 05:57:09 2006 Return-path: Envelope-to: gebp-emacs-pretest-bug@gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GaP1g-00033Z-UI for gebp-emacs-pretest-bug@gmane.org; Thu, 19 Oct 2006 05:57:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GaP1g-0007Sm-Ec for gebp-emacs-pretest-bug@gmane.org; Wed, 18 Oct 2006 23:57:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GaP1b-0007MQ-Vo for emacs-pretest-bug@gnu.org; Wed, 18 Oct 2006 23:56:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GaP1Y-0007F2-IS for emacs-pretest-bug@gnu.org; Wed, 18 Oct 2006 23:56:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GaP1Y-0007ED-3g for emacs-pretest-bug@gnu.org; Wed, 18 Oct 2006 23:56:52 -0400 Original-Received: from [66.225.201.13] (helo=washington.hostforweb.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GaP1W-00080c-Lo for emacs-pretest-bug@gnu.org; Wed, 18 Oct 2006 23:56:52 -0400 Original-Received: from [205.234.185.198] (port=53596 helo=mail.jpl.org) by washington.hostforweb.net with esmtpa (Exim 4.52) id 1GaP1e-0002NU-HR; Wed, 18 Oct 2006 22:56:58 -0500 Original-To: Chong Yidong X-Hashcash: 1:20:061019:cyd@stupidchicken.com::fuXgaPDgYPEdWR1k:000000000000000000000000000000000000000029pz X-Hashcash: 1:20:061019:emacs-pretest-bug@gnu.org::6UNIS4tvi1l5o65e:00000000000000000000000000000000000048Zz X-Hashcash: 1:20:061019:id.brep@gmail.com::U/XkA9t00f6h52bT:000000000000000000000000000000000000000000007Js0 X-Hashcash: 1:20:061019:handa@m17n.org::l9S/YCwmBDDdf8xc:00065Z+ X-Hashcash: 1:20:061019:ding@gnus.org::ch0do/yXK9EQsxxJ:00001ds0 X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:2wHo/Z1/UrNUbOMLFvKJ/lHruN4= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: 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:14667 gmane.emacs.gnus.general:63838 Archived-At: >>>>> In <87mz7tm2wn.fsf@furball.mit.edu> >>>>> Chong Yidong wrote: > Zhang Wei writes: >> `.newsrc.eld' can't save chinese group name in proper coding. When gnus >> is restarted, all of the articles in groups with chinese name are marked >> unread. But enter that group, you will find all of the articles are old >> articles (marked by an `O'). The file in the attachment is the wrong >> formatted `.newsrc.eld', hope that will be helpful. > The problem seems to be that when a Chinese group name is given, e.g. > "=E5=A5=BD", `gnus-group-insert-group-line' ends up calling > (decode-coding-string "=E5=A5=BD" 'utf-8) > which gives gibberish. Could either the coding systems experts > (i.e. Handa) or Gnus experts tell us why this is the wrong thing to > do? Gnus uses utf-8 encoded non-ASCII group names internally, those encoded names are saved in the .newsrc.eld file, and they are decoded by utf-8 when displaying. I had no problem when I once tried nnrss groups with Japanese names. So, I cannot imagine what is happening with Zhang Wei, sorry. > I think the way to reproduce this is as follows: > 1. save an empty file with a Chinese filename: > C-x C-f =E5=A5=BD RET RET C-x C-s > (I simply copied the character into the minibuffer from the HELLO > file.) > 2. go to the Gnus group buffer: > M-x gnus RET > 3. Open that file as a Gnus group: > G f > =3D> Gnus group line is shown in Gibberish It is caused because of the default value of `gnus-group-name-charset-group-alist'. It can be fixed with the following: (push '("\\`nndoc\\(\\+?[^:]+\\)?:") gnus-group-name-charset-group-alist) However, I'm not quite sure making it the new default is generally good. Regards,