From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Karl Eichwalder Newsgroups: gmane.emacs.devel Subject: ISO-8859-1 encoded file names and UTF-8 Date: Sat, 08 Mar 2003 07:15:56 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1047104346 22366 80.91.224.249 (8 Mar 2003 06:19:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 8 Mar 2003 06:19:06 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Mar 08 07:19:04 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18rXfk-0005ob-00 for ; Sat, 08 Mar 2003 07:19:04 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18rY0t-0000jN-00 for ; Sat, 08 Mar 2003 07:40:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18rXf0-0007bN-0A for emacs-devel@quimby.gnus.org; Sat, 08 Mar 2003 01:18:18 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18rXei-0007ao-00 for emacs-devel@gnu.org; Sat, 08 Mar 2003 01:18:00 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18rXef-0007X8-00 for emacs-devel@gnu.org; Sat, 08 Mar 2003 01:17:59 -0500 Original-Received: from elvis.franken.de ([193.175.24.41]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18rXee-0007LM-00 for emacs-devel@gnu.org; Sat, 08 Mar 2003 01:17:56 -0500 Original-Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 18rXea-0004uG-00 for emacs-devel@gnu.org; Sat, 08 Mar 2003 07:17:52 +0100 Original-Received: by tux.gnu.franken.de (Postfix, from userid 270) id C46C8A43E4; Sat, 8 Mar 2003 07:15:56 +0100 (CET) Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (i686-pc-linux-gnu) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12165 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12165 UTF-8 Emacs sometimes fails to manage ISO-8859-1 file names. I do not know how you can rename or convert these file name from ISO-8859-1 to UTF-8 encoded names using Emacs. I created some ISO-8859-1 encoded file names (on top of the ext2 file system). Start a UTF-8 Emacs: LANG=3Dde_DE.UTF-8 emacs Call dired on the directory containing these files; you will see something like (attention, Emacs/Gnus will normalize the names when I send the mail!): /home/ke/Texte/wikipedia: insgesamt 100 -rw-r--r-- 1 ke users 1291 2003-03-06 08:35 Br=FCcke (Bau= werk) drwxr-xr-x 2 ke users 4096 2003-03-07 22:29 CVS -rw-r--r-- 1 ke users 5836 2003-03-07 07:38 Deutschland -rw-r--r-- 1 ke users 1796 2003-03-07 20:44 F=FCrth (Baye= rn) -rw-r--r-- 1 ke users 450 2003-03-07 22:28 Ludwigs-Kanal -rw-r--r-- 1 ke users 259 2003-03-07 05:41 Malaiische Sp= rache -rw-r--r-- 1 ke users 1584 2003-03-07 22:33 Malaysia -rw-r--r-- 1 ke users 1266 2003-03-06 08:47 Malta -rw-r--r-- 1 ke users 865 2003-03-06 21:24 Maltesische S= prache -rw-r--r-- 1 ke users 520 2003-03-05 23:22 N=F6rdliches = Sotho -rw-r--r-- 1 ke users 1269 2003-03-07 20:04 Pegnitz (Flus= s) -rw-r--r-- 1 ke users 682 2003-03-07 20:58 Regnitz -rw-r--r-- 1 ke users 668 2003-03-07 07:19 Rosmarin -rw-r--r-- 1 ke users 593 2003-03-05 23:23 Sesotho Note, the buffer is marked "-u" in the modeline. Now go to a file name with umlauts and press 'f' to visit the file: Debugger entered--Lisp error: (error "File no longer exists; type `g' to up= date Dired buffer") signal(error ("File no longer exists; type `g' to update Dired buffer")) error("File no longer exists; type `g' to update Dired buffer") dired-get-file-for-visit() dired-find-file() call-interactively(dired-find-file) If you will need more info, please ask. I can also send a tar archive containing those stupid file names. --=20 ke@suse.de (work) / keichwa@gmx.net (home): | http://www.gnu.franken.de/ke/ | ,__o Free Translation Project: | _-\_<, http://www.iro.umontreal.ca/contrib/po/HTML/ | (*)/'(*)