From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel,gmane.comp.gnu.core-utils.bugs Subject: Re: dired doesn't work properly with a multibyte locale Date: Mon, 3 Feb 2003 17:40:56 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200302030840.RAA24766@etlken.m17n.org> References: <200301151043.TAA09856@etlken.m17n.org> <200301230602.PAA07755@etlken.m17n.org> <200301250049.JAA11674@etlken.m17n.org> <200301270501.OAA14427@etlken.m17n.org> <200301271109.UAA14818@etlken.m17n.org> <200302030017.JAA24252@etlken.m17n.org> <200302030211.LAA24365@etlken.m17n.org> 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 1044261741 27944 80.91.224.249 (3 Feb 2003 08:42:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 3 Feb 2003 08:42:21 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18fcBH-0007GZ-00 for ; Mon, 03 Feb 2003 09:42:19 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18fcIm-000594-00 for ; Mon, 03 Feb 2003 09:50:05 +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 18fcCV-0004aM-04 for emacs-devel@quimby.gnus.org; Mon, 03 Feb 2003 03:43:35 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18fcBf-0004Jc-00 for emacs-devel@gnu.org; Mon, 03 Feb 2003 03:42:43 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18fcAw-0003nq-00 for emacs-devel@gnu.org; Mon, 03 Feb 2003 03:42:04 -0500 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18fcAF-0002iS-00; Mon, 03 Feb 2003 03:41:16 -0500 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2])h138evk13750; Mon, 3 Feb 2003 17:40:57 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) h138euR25583; Mon, 3 Feb 2003 17:40:56 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id RAA24766; Mon, 3 Feb 2003 17:40:56 +0900 (JST) Original-To: miles@gnu.org In-reply-to: (message from Miles Bader on 03 Feb 2003 11:22:12 +0900) 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) Original-cc: d.love@dl.ac.uk Original-cc: bug-coreutils@gnu.org Original-cc: emacs-pretest-bug@gnu.org Original-cc: schwab@suse.de 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:11301 gmane.comp.gnu.core-utils.bugs:97 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11301 In article , Miles Bader writes: >> This statement reads that any character encoded by multiple bytes in a >> filename causes a trouble, for instance any CJK characters in CJK >> locales or any non-ASCII chars in UTF-8 locale. As you can use >> ja_JP.eucJP locale, could you please try some Japanese file name? > They work fine for me. > My impression was that the bug only occured with newlines, and looking > at Andrea's patch seems to confirm this. I think that when Andreas > mentioned byte vs character counts it was merely to clarify the issue > (as earlier there was some confusion about that in this thread). I read his mail again, and found that the bug is not in chars vs bytes, but columns vs bytes. So, ja_JP.eucJP was not a good example because, in that locale, column numbers and bytes are equal. Please try some UTF-8 locale (e.g. en_US.UTF-8) with Latin-1 filenames. I believe that the current dired will be confused. >> > This package is the union of the following: >> > textutils-2.1, fileutils-4.1.11, sh-utils-2.0.15. >> >> Hmmm, then, it's strange that "ls (fileutils) 4.1" works, >> but "ls (coreutils) 4.5" doesn't. > Why? I think it just means that the bug was introduced after fileutils-4.1. Ah, sure. I blindly thought that the last digits "11" was not important. --- Ken'ichi HANDA handa@m17n.org