From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63845 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general,gmane.emacs.pretest.bugs Subject: Re: `.newsrc.eld' saves chinese group name in wrong coding Date: Fri, 20 Oct 2006 14:18:46 +0900 Organization: Emacsen advocacy group Message-ID: References: <87mz7tm2wn.fsf@furball.mit.edu> <87u01zd5ba.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 1161321757 5755 80.91.229.2 (20 Oct 2006 05:22:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Oct 2006 05:22:37 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org Original-X-From: ding-owner+m12372@lists.math.uh.edu Fri Oct 20 07:22:35 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gamq0-0004qY-3N for ding-account@gmane.org; Fri, 20 Oct 2006 07:22:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1Gampe-0003tp-00; Fri, 20 Oct 2006 00:22:10 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Gamme-0003tk-00 for ding@lists.math.uh.edu; Fri, 20 Oct 2006 00:19:04 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1Gamma-0000yG-Tb for ding@lists.math.uh.edu; Fri, 20 Oct 2006 00:19:03 -0500 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1GammZ-0002qQ-00 for ; Fri, 20 Oct 2006 07:18:59 +0200 Original-Received: from [205.234.185.198] (port=39347 helo=mail.jpl.org) by washington.hostforweb.net with esmtpa (Exim 4.52) id 1Gammn-0001Qp-HO; Fri, 20 Oct 2006 00:19:13 -0500 Original-To: ding@gnus.org X-Hashcash: 1:20:061020:ding@gnus.org::vT1gvj+DyoH2NnV9:00003XGx X-Hashcash: 1:20:061020:emacs-pretest-bug@gnu.org::2jm08dr5lGnz+66+:0000000000000000000000000000000000001EUC 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.1008 (Gnus v5.10.8) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:2bwjBXteOkokM97It759xvFgCqg= 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 - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63845 gmane.emacs.pretest.bugs:14686 Archived-At: >>>>> In 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 >>>>>> Zhang Wei 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 "~/=E5=A5=BD" 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)))))) =20=20 --- 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)))))) =20=20 --8<---------------cut here---------------end--------------->8---