From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Strange behaviour with dired and UTF8 Date: Mon, 5 May 2003 18:20:04 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200305050920.SAA20197@etlken.m17n.org> References: <200305021336.h42DaHbN022640@stubby.bodenonline.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1052126639 24902 80.91.224.249 (5 May 2003 09:23:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 5 May 2003 09:23:59 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon May 05 11:23:53 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 19CcAR-0006MS-00 for ; Mon, 05 May 2003 11:21:51 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19CcDM-00077X-00 for ; Mon, 05 May 2003 11:24:53 +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 19CcBE-0007iq-00 for emacs-devel@quimby.gnus.org; Mon, 05 May 2003 05:22:40 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19CcAz-0007hD-00 for emacs-devel@gnu.org; Mon, 05 May 2003 05:22:25 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19CcAw-0007fP-00 for emacs-devel@gnu.org; Mon, 05 May 2003 05:22:23 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Cc8o-0006kc-00 for emacs-devel@gnu.org; Mon, 05 May 2003 05:20:10 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2])h459K5o06441; Mon, 5 May 2003 18:20:05 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) h459K4A25080; Mon, 5 May 2003 18:20:05 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id SAA20197; Mon, 5 May 2003 18:20:04 +0900 (JST) Original-To: jan.h.d@swipnet.se In-reply-to: <200305021336.h42DaHbN022640@stubby.bodenonline.com> (jan.h.d@swipnet.se) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) 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:13687 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13687 In article <200305021336.h42DaHbN022640@stubby.bodenonline.com>, "Jan D." writes: > I think I understand now. You mean if dired uses UTF8, and file system > coding is Latin-1, C-x C-f would then use Latin-1, and possibly fail? Yes. > I agree that this is bad, but I am not sure anything can be done > about it. How about my proposal? Doesn't it solve this problem? > Both KDE and GNOME file managers and file dialogs fail to open > the right file in certain cases. I think it is worse if dired fails on > 'f' since in that case the file name is supplied by dired, not the user. > For C-x C-f there is always TAB to see what Emacs thinks the file is called. But, *Completion* buffer doesn't show correct file names because there are names encoded by latin-1. How one can choose what he want? In addtion, TAB says "[no match]" if one has already typed some non-ASCII characters. > I am not sure your case covers all cases. If a file name was > latin-1 and then converted to UTF8 (outside Emacs), Emacs would think it is > still latin-1, no? > It involves a bit of user interaction, making it intrusive. Yes, but I think Emacs doesn't have to care about such a case. --- Ken'ichi HANDA handa@m17n.org