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 11:11:32 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200302030211.LAA24365@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> 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 1044238214 6458 80.91.224.249 (3 Feb 2003 02:10:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 3 Feb 2003 02:10:14 +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 18fW3n-0001g2-00 for ; Mon, 03 Feb 2003 03:10:11 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18fWBA-0001XU-00 for ; Mon, 03 Feb 2003 03:17:49 +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 18fW5b-00041e-02 for emacs-devel@quimby.gnus.org; Sun, 02 Feb 2003 21:12:03 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18fW5D-0003x2-00 for emacs-devel@gnu.org; Sun, 02 Feb 2003 21:11:39 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18fW5A-0003sw-00 for emacs-devel@gnu.org; Sun, 02 Feb 2003 21:11:38 -0500 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18fW5A-0003sq-00; Sun, 02 Feb 2003 21:11:36 -0500 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2])h132BXk11484; Mon, 3 Feb 2003 11:11:33 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) h132BWR24289; Mon, 3 Feb 2003 11:11:32 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id LAA24365; Mon, 3 Feb 2003 11:11:32 +0900 (JST) Original-To: miles@gnu.org In-reply-to: (message from Miles Bader on 03 Feb 2003 10:24:06 +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:11298 gmane.comp.gnu.core-utils.bugs:95 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11298 In article , Miles Bader writes: > Kenichi Handa writes: >> > I just checked, 4.1 has already all support. Sorry for confusion. >> >> I see. But, anyway, "ls (coreutils) 4.5.4" has a bug. If >> this version of "ls" is already widely spread, shouldn't >> Emacs pay special attention to such a buggy "ls"? > Is it worth the trouble? As far as I know the problem only occurs with > newlines in filenames, which is an extremely rare thing; as long as it > gets fixed in the next version, that seems good enough to me... If the bug happens only for such filenames, I agree that it's not worth working on it anymore. But... Andreas Schwab writes: > Here is a patch. The dired offset are documented as being byte counts, > not character counts. The bug happens in any multibyte locale. 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? > coreutils is just a merge of fileutils + shutils + ... > The NEWS file for coreutils says: > [4.5.1] > ... > 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. --- Ken'ichi HANDA handa@m17n.org