From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/11619 Path: news.gmane.org!not-for-mail From: jidanni@jidanni.org Newsgroups: gmane.emacs.gnus.user Subject: making ~/News/nnrss:* filenames utf-8 Date: Sun, 09 Nov 2008 06:49:33 +0800 Message-ID: <87od0pu936.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226184591 27056 80.91.229.12 (8 Nov 2008 22:49:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Nov 2008 22:49:51 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sat Nov 08 23:50:53 2008 connect(): Connection refused Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kywdn-0004PE-SQ for gegu-info-gnus-english@m.gmane.org; Sat, 08 Nov 2008 23:50:52 +0100 Original-Received: from localhost ([127.0.0.1]:52680 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kywcg-0000Cm-9o for gegu-info-gnus-english@m.gmane.org; Sat, 08 Nov 2008 17:49:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kywce-0000CU-2Z for info-gnus-english@gnu.org; Sat, 08 Nov 2008 17:49:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kywcb-0000CI-LC for info-gnus-english@gnu.org; Sat, 08 Nov 2008 17:49:38 -0500 Original-Received: from [199.232.76.173] (port=44787 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kywcb-0000CF-FJ for info-gnus-english@gnu.org; Sat, 08 Nov 2008 17:49:37 -0500 Original-Received: from sd-green-bigip-177.dreamhost.com ([208.97.132.177]:45493 helo=homiemail-a2.g.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kywcb-0008Ga-5S for info-gnus-english@gnu.org; Sat, 08 Nov 2008 17:49:37 -0500 Original-Received: from jidanni1.jidanni.org (122-127-35-41.dynamic.hinet.net [122.127.35.41]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a2.g.dreamhost.com (Postfix) with ESMTP id 942C8D2713 for ; Sat, 8 Nov 2008 14:49:35 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:11619 Archived-At: How do I clean up mule-utf-8 filenames? (guaranteed to give garbage characters for non-ASCII to anybody who looks at them, made even when RSS is UTF-8 already.) $ ls News/nnrss:*|iconv>/dev/null iconv: illegal input sequence at position 19 In (info "(gnus)RSS") it says The `nnrss' back end saves the group data file in `nnrss-directory' (see below) for each `nnrss' group. File names containing non-ASCII characters will be encoded by the coding system specified with the `nnmail-pathname-coding-system' variable. If it is `nil', in Emacs the coding system defaults to the value of `default-file-name-coding-system'. Which says: default-file-name-coding-system is a variable defined in `C source code'. Its value is mule-utf-8 This variable is set/changed by the command `set-language-environment'. User should not set this variable manually, instead use `file-name-coding-system' to get a constant encoding of file names regardless of the current language environment. So how does one change those filenames to UTF-8 safely? $ for i in nnrss:*; do mv $i `echo $i|WHAT`; done then echo "(setq file-name-coding-system 'utf-8)">> .emacs then start emacs? I use Debian unstable, emacs-version "22.2.1". Yes, I hear emacs 23 is UTF-8 already. P.S., Ding list broken: pipe to |/local/majordomo/bin/mj_enqueue -r -d lists.math.uh.edu -l ding -P10 -p10 generated by ding@lists.math.uh.edu local delivery failed