[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `.newsrc.eld' saves chinese group name in wrong coding

From: Chong Yidong
Subject: Re: `.newsrc.eld' saves chinese group name in wrong coding
Date: Wed, 18 Oct 2006 22:54:00 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Zhang Wei <address@hidden> 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.
"好", `gnus-group-insert-group-line' ends up calling

  (decode-coding-string "好" '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

I think the way to reproduce this is as follows:

1. save an empty file with a Chinese filename:
   C-x C-f 好 RET RET C-x C-s

   (I simply copied the character into the minibuffer from the HELLO

2. go to the Gnus group buffer:
   M-x gnus RET

3. Open that file as a Gnus group:
   G f

=> Gnus group line is shown in Gibberish

reply via email to

[Prev in Thread] Current Thread [Next in Thread]