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: Re: ISO-8859-1 encoded file names and UTF-8 Date: Wed, 19 Mar 2003 17:15:42 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200303191333.WAA29877@etlken.m17n.org> 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 1048091550 17196 80.91.224.249 (19 Mar 2003 16:32:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 19 Mar 2003 16:32:30 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Mar 19 17:32:25 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 18vgUL-0004Sq-00 for ; Wed, 19 Mar 2003 17:32:25 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18vgVA-0005VZ-00 for ; Wed, 19 Mar 2003 17:33:16 +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 18vgOx-0004b7-02 for emacs-devel@quimby.gnus.org; Wed, 19 Mar 2003 11:26:51 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18vgIe-0002tq-00 for emacs-devel@gnu.org; Wed, 19 Mar 2003 11:20:20 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18vgIN-0002ih-00 for emacs-devel@gnu.org; Wed, 19 Mar 2003 11:20:08 -0500 Original-Received: from elvis.franken.de ([193.175.24.41]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18vgGX-0001WB-00 for emacs-devel@gnu.org; Wed, 19 Mar 2003 11:18:10 -0500 Original-Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 18vgGg-000767-00; Wed, 19 Mar 2003 17:18:18 +0100 Original-Received: by tux.gnu.franken.de (Postfix, from userid 270) id F4094A43E4; Wed, 19 Mar 2003 17:15:42 +0100 (CET) Original-To: Kenichi Handa In-Reply-To: <200303191333.WAA29877@etlken.m17n.org> (Kenichi Handa's message of "Wed, 19 Mar 2003 22:33:35 +0900 (JST)") User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (gnu/linux) 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:12467 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12467 Kenichi Handa writes: > I'm sorry for the late response. Before providing a solution, I had > to fix some fundamental problems about filename handling. Yes, I already saw you working on stuff like that the last days; thanks a lot! >> 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= update Dired buffer") > > This problem should be fixed now in HEAD. Please try again after > updating from CVS. I think there is still a subtle bug left; in a ISO-8859-1 locale do: touch "Maler M=FCller" Then call emacs: LANG=3Dde_DE.UTF-8 emacs -q --no-site --no-splash . In dired you can see: -rw-r--r-- 1 ke users 0 2003-03-19 16:10 Maler M\374ller\374rle good part ^^^^^^^^^^^^^^^||||||| trailing garbage ------------>>>^^^^^^^ There is trailing garbage (otherwise the escape sequence is okay for me!). > Anyway, how about the attached function for changing the encoding of a > filename. I have not yet installed it because I have not yet found an > answer to this question. The function works for me. > Should the recoding of filename regarded as a kind of file name > changing? If so, perhaps we should make the function rename-file to > handle also recoding. In that case, how should we tell rename-file > to actually recode filename encoding? If the user calls rename-file it should be up to him to specify a proper file name. In other words I vote to provide a separate function like convert-file-name to do the right thing; by default convert-file-name should try to convert the file name to the user's locale. Hope this helps. --=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/ | (*)/'(*)