From: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: emacs-pretest-bug@gnu.org
Subject: Re: `.newsrc.eld' saves chinese group name in wrong coding
Date: Fri, 20 Oct 2006 14:18:46 +0900 [thread overview]
Message-ID: <b4mk62v5zux.fsf@jpl.org> (raw)
In-Reply-To: <b4mods7hbr3.fsf@jpl.org>
>>>>> In <b4mods7hbr3.fsf@jpl.org> Katsumi Yamaoka wrote:
>>>>>> In <87u01zd5ba.fsf@furball.mit.edu> Chong Yidong wrote:
>> So what needs to be changed?
> I'm now looking into it. However, I think improving of nndoc
> might not help Zhang Wei because the problem looked caused by
> the nntp group. So, I'm not urged by myself so much.
>>>>>> In <ufydnay6j.fsf@gmail.com>
>>>>>> Zhang Wei <id.brep@gmail.com> wrote:
> [...]
>> (setq gnus-newsrc-alist '(("\301\367\320\30799.\261\276\265\330\262\342\312\324" 3 ((1 . 8)) ((seen (1 . 8))))...
The following patch enables Gnus to use non-ASCII names in nndoc
groups. I've tested it with the "~/好" file containing mbox
data. After some other tests, I will install it to the Gnus
trunk and the v5-10 branch.
I don't think it solves Zhang Wei's problem anyway, though. I'm
unable to test with nntp groups of non-ASCII names, but IIRC,
Gnus has been completed to run with those groups a couple of
years ago (even if there might still be trivial difficulties).
--8<---------------cut here---------------start------------->8---
*** gnus-group.el~ Mon Jul 17 21:52:02 2006
--- gnus-group.el Fri Oct 20 05:15:50 2006
***************
*** 2680,2692 ****
(t (setq err (format "%c unknown. " char))
nil))))
(setq type found)))
! (let* ((file (expand-file-name file))
! (name (gnus-generate-new-group-name
! (gnus-group-prefixed-name
! (file-name-nondirectory file) '(nndoc "")))))
(gnus-group-make-group
! (gnus-group-real-name name)
! (list 'nndoc file
(list 'nndoc-address file)
(list 'nndoc-article-type (or type 'guess))))))
--- 2680,2697 ----
(t (setq err (format "%c unknown. " char))
nil))))
(setq type found)))
! (setq file (expand-file-name file))
! (let ((name (gnus-generate-new-group-name
! (gnus-group-prefixed-name
! (file-name-nondirectory file) '(nndoc ""))))
! (encodable (mm-coding-system-p 'utf-8)))
(gnus-group-make-group
! (if encodable
! (mm-encode-coding-string (gnus-group-real-name name) 'utf-8)
! (gnus-group-real-name name))
! (list 'nndoc (if encodable
! (mm-encode-coding-string file 'utf-8)
! file)
(list 'nndoc-address file)
(list 'nndoc-article-type (or type 'guess))))))
--8<---------------cut here---------------end--------------->8---
next prev parent reply other threads:[~2006-10-20 5:18 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <ufydnay6j.fsf@gmail.com>
2006-10-19 2:54 ` Chong Yidong
2006-10-19 3:56 ` Katsumi Yamaoka
2006-10-19 4:11 ` Katsumi Yamaoka
2006-10-19 8:33 ` Reiner Steib
2006-10-19 9:03 ` Katsumi Yamaoka
2006-10-20 3:39 ` Chong Yidong
2006-10-20 4:06 ` Katsumi Yamaoka
2006-10-20 5:18 ` Katsumi Yamaoka [this message]
2006-10-20 6:04 ` Eli Zaretskii
2006-10-20 6:21 ` Katsumi Yamaoka
2006-10-20 6:38 ` Eli Zaretskii
2006-10-20 8:59 ` Katsumi Yamaoka
2006-10-21 2:03 ` Richard Stallman
2006-10-22 23:28 ` Katsumi Yamaoka
2006-10-23 11:45 ` Richard Stallman
2006-10-20 19:19 ` Stefan Monnier
2006-10-20 20:30 ` Eli Zaretskii
2006-10-20 22:06 ` Stefan Monnier
2006-10-21 9:22 ` Eli Zaretskii
2006-10-23 3:55 ` Stefan Monnier
2006-10-23 4:16 ` Eli Zaretskii
2006-10-23 19:11 ` Stefan Monnier
2006-10-23 20:06 ` Eli Zaretskii
2006-10-23 20:49 ` Stefan Monnier
2006-10-24 4:17 ` Eli Zaretskii
2006-10-24 15:22 ` Stefan Monnier
2006-10-24 17:27 ` Eli Zaretskii
2006-10-24 18:03 ` Stefan Monnier
2006-10-25 18:02 ` Richard Stallman
2006-10-25 20:22 ` Eli Zaretskii
2006-10-26 8:52 ` Richard Stallman
2006-10-27 8:05 ` Eli Zaretskii
2006-10-27 13:33 ` Richard Stallman
2006-10-27 14:27 ` Stefan Monnier
2006-10-28 18:13 ` Richard Stallman
2006-10-28 10:28 ` Eli Zaretskii
2006-10-29 18:45 ` Richard Stallman
2006-10-23 11:45 ` Richard Stallman
2006-10-23 19:16 ` Stefan Monnier
2006-10-24 17:43 ` Richard Stallman
2006-10-24 18:14 ` Stefan Monnier
2006-10-25 18:03 ` Richard Stallman
2006-10-25 18:03 ` Richard Stallman
2006-10-27 2:48 ` Kenichi Handa
2006-10-21 1:01 ` Kenichi Handa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b4mk62v5zux.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=emacs-pretest-bug@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).