From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60097 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Why does nnmail-group-pathname encode filename? Date: Tue, 05 Apr 2005 22:14:30 +0900 Organization: Emacsen advocacy group Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1112707142 2553 80.91.229.2 (5 Apr 2005 13:19:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Apr 2005 13:19:02 +0000 (UTC) Original-X-From: ding-owner+M8624@lists.math.uh.edu Tue Apr 05 15:18:59 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by ciao.gmane.org with esmtp (Exim 4.43) id 1DInwH-0007iv-CH for ding-account@gmane.org; Tue, 05 Apr 2005 15:17:53 +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 1DIntW-0005NQ-00; Tue, 05 Apr 2005 08:15:02 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1DIntR-0005NL-00 for ding@lists.math.uh.edu; Tue, 05 Apr 2005 08:14:57 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1DIntJ-0002jW-4V for ding@lists.math.uh.edu; Tue, 05 Apr 2005 08:14:49 -0500 Original-Received: from washington.hostforweb.net ([69.61.11.2]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1DInt6-00078M-00 for ; Tue, 05 Apr 2005 15:14:36 +0200 Original-Received: from localhost ([127.0.0.1]) by washington.hostforweb.net with esmtpa (Exim 4.44) id 1DInt5-0000Jt-Qc for ding@gnus.org; Tue, 05 Apr 2005 09:14:36 -0400 Original-To: ding@gnus.org 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.1007 (Gnus v5.10.7) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:LqKG0NR1q4SgDBFZ+VtCOD8h5nI= X-Antivirus-Scanner: Clean mail though you should still use an Antivirus 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 - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -4.8 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60097 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60097 Hi, I noticed non-ASCII group names cause an error in XEmacs. It is because `nnmail-group-pathname' encodes a file name by `nnmail-pathname-coding-system' as follows: (defun nnmail-group-pathname (group dir &optional file) "Make file name for GROUP." [...] (expand-file-name (mm-encode-coding-string (nnheader-replace-chars-in-string group ?. ?/) nnmail-pathname-coding-system) dir)))) The backtrace is below and here's a simple example how the problem occurs: (let ((file (concat "/tmp/" (string (make-char 'japanese-jisx0208 36 34)))) (file-name-coding-system 'euc-jp)) (write-region (point) (point) file) (setq file (encode-coding-string file 'euc-jp)) (file-exists-p file)) It returns t in Emacs, but nil in XEmacs since the file name is encoded doubly. Does anyone know the reason it is needed? In addition to this, isn't it unnecessary that `gnus-agent-group-path' does the same? Debugger entered--Lisp error: (file-error "Opening output file" "No such file or directory" "/home/yamaoka/News/agent/nnrss/unnamed/########/.overview") write-region-internal(1 1603 "/home/yamaoka/News/agent/nnrss/unnamed/########/.overview" nil silent nil raw-text) write-region(1 1603 "/home/yamaoka/News/agent/nnrss/unnamed/########/.overview" nil silent) gnus-agent-retrieve-headers((1 2 3 4 5 6 7 8 9 10) "nnrss:********" nil) gnus-retrieve-headers((1 2 3 4 5 6 7 8 9 10) "nnrss:********" nil) gnus-cache-retrieve-headers((1 2 3 4 5 6 7 8 9 10) "nnrss:********" nil) gnus-retrieve-headers((1 2 3 4 5 6 7 8 9 10) "nnrss:********" nil) gnus-fetch-headers((1 2 3 4 5 6 7 8 9 10)) gnus-select-newsgroup("nnrss:********" nil nil) gnus-summary-read-group-1("nnrss:********" nil nil nil nil nil) gnus-summary-read-group("nnrss:********" nil nil nil nil nil nil) gnus-group-read-group(nil) call-interactively(gnus-group-read-group) (`********' is a non-ASCII group name, `########' is an encoded one)