From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63837 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.pretest.bugs,gmane.emacs.gnus.general Subject: Re: `.newsrc.eld' saves chinese group name in wrong coding Date: Wed, 18 Oct 2006 22:54:00 -0400 Message-ID: <87mz7tm2wn.fsf@furball.mit.edu> References: 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 1161226465 24800 80.91.229.2 (19 Oct 2006 02:54:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Oct 2006 02:54:25 +0000 (UTC) Cc: 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 04:54:22 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 1GaO33-0007f7-GL for gebp-emacs-pretest-bug@gmane.org; Thu, 19 Oct 2006 04:54:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GaO33-0006iC-2h for gebp-emacs-pretest-bug@gmane.org; Wed, 18 Oct 2006 22:54:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GaO2w-0006bo-52 for emacs-pretest-bug@gnu.org; Wed, 18 Oct 2006 22:54:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GaO2v-0006a4-Jz for emacs-pretest-bug@gnu.org; Wed, 18 Oct 2006 22:54:13 -0400 Original-Received: from [18.72.1.2] (helo=south-station-annex.mit.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GaO2v-0005S6-IC for emacs-pretest-bug@gnu.org; Wed, 18 Oct 2006 22:54:13 -0400 Original-Received: from central-city-carrier-station.mit.edu (CENTRAL-CITY-CARRIER-STATION.MIT.EDU [18.7.7.72]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id k9J2sAL9009041; Wed, 18 Oct 2006 22:54:10 -0400 (EDT) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by central-city-carrier-station.mit.edu (8.13.6/8.9.2) with ESMTP id k9J2s4PL005824; Wed, 18 Oct 2006 22:54:04 -0400 (EDT) Original-Received: from furball.mit.edu (SYDNEYPACIFIC-THREE-FIFTY-THREE.MIT.EDU [18.95.6.98]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id k9J2s0q7003152; Wed, 18 Oct 2006 22:54:00 -0400 (EDT) Original-Received: from cyd by furball.mit.edu with local (Exim 3.36 #1 (Debian)) id 1GaO2i-0002ex-00; Wed, 18 Oct 2006 22:54:00 -0400 Original-To: emacs-pretest-bug@gnu.org In-Reply-To: (Zhang Wei's message of "Tue\, 17 Oct 2006 21\:07\:00 +0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Spam-Score: 1.217 X-Scanned-By: MIMEDefang 2.42 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:14666 gmane.emacs.gnus.general:63837 Archived-At: 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? 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