[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
do?
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
file.)
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
- `.newsrc.eld' saves chinese group name in wrong coding, Zhang Wei, 2006/10/17
- Re: `.newsrc.eld' saves chinese group name in wrong coding,
Chong Yidong <=
- Re: `.newsrc.eld' saves chinese group name in wrong coding, Katsumi Yamaoka, 2006/10/18
- Re: `.newsrc.eld' saves chinese group name in wrong coding, Katsumi Yamaoka, 2006/10/19
- Re: `.newsrc.eld' saves chinese group name in wrong coding, Reiner Steib, 2006/10/19
- Re: `.newsrc.eld' saves chinese group name in wrong coding, Katsumi Yamaoka, 2006/10/19
- Re: `.newsrc.eld' saves chinese group name in wrong coding, Chong Yidong, 2006/10/20
- Re: `.newsrc.eld' saves chinese group name in wrong coding, Katsumi Yamaoka, 2006/10/20
- Re: `.newsrc.eld' saves chinese group name in wrong coding, Katsumi Yamaoka, 2006/10/20
- Re: `.newsrc.eld' saves chinese group name in wrong coding, Eli Zaretskii, 2006/10/20
- Re: `.newsrc.eld' saves chinese group name in wrong coding, Katsumi Yamaoka, 2006/10/20
- Re: `.newsrc.eld' saves chinese group name in wrong coding, Eli Zaretskii, 2006/10/20