From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Strange behaviour with dired and UTF8 Date: Sat, 3 May 2003 20:11:44 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1051985601 4538 80.91.224.249 (3 May 2003 18:13:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 3 May 2003 18:13:21 +0000 (UTC) Cc: Kenichi Handa Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat May 03 20:13:19 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 19C1VC-00019e-00 for ; Sat, 03 May 2003 20:12:50 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19C1XG-000377-00 for ; Sat, 03 May 2003 20:15:03 +0200 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 19C1Vj-0004bz-02 for emacs-devel@quimby.gnus.org; Sat, 03 May 2003 14:13:23 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19C1V4-00049r-00 for emacs-devel@gnu.org; Sat, 03 May 2003 14:12:42 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19C1V2-00048O-00 for emacs-devel@gnu.org; Sat, 03 May 2003 14:12:41 -0400 Original-Received: from stubby.bodenonline.com ([193.201.16.94]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19C1Uw-00044A-00; Sat, 03 May 2003 14:12:35 -0400 Original-Received: from accessno42.bodenonline.com (IDENT:root@accessno42.bodenonline.com [193.201.16.44]) h43J3AbL015610; Sat, 3 May 2003 21:03:11 +0200 Original-To: rms@gnu.org In-Reply-To: X-Mailer: Apple Mail (2.552) Original-cc: emacs-devel@gnu.org 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:13660 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13660 > It would be fundamentally clean to make sure that decoding of file > names is never many-one. Is that possible? Some of your messages > suggest it is already the case. I don't think it is possible as long as Emacs only has one file system encoding (file-name-coding-system). The original problem is this: file-name-coding-system is latin-1 Open dired on a directory with UTF-8 file names. Do C-x RET r utf-8. Try to operate on a file with non-ascii characters gives "File no longer exists; type `g' to update Dired buffer" This is because when decoding the file name Emacs uses latin-1 and thus doesn't get the original file name back. As long as there can be file names with different encodings this problem can occur. Jan D.