From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel,gmane.comp.gnu.core-utils.bugs Subject: Re: dired doesn't work properly with a multibyte locale Date: 03 Feb 2003 11:22:12 +0900 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: 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> Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044238903 8526 80.91.224.249 (3 Feb 2003 02:21:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 3 Feb 2003 02:21:43 +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 18fWEu-0002DH-00 for ; Mon, 03 Feb 2003 03:21:40 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18fWMI-0001dT-00 for ; Mon, 03 Feb 2003 03:29:18 +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 18fWGD-0003cq-06 for emacs-devel@quimby.gnus.org; Sun, 02 Feb 2003 21:23:01 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18fWFq-0003YI-00 for emacs-devel@gnu.org; Sun, 02 Feb 2003 21:22:38 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18fWFp-0003WQ-00 for emacs-devel@gnu.org; Sun, 02 Feb 2003 21:22:37 -0500 Original-Received: from tyo201.gate.nec.co.jp ([210.143.35.51]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18fWFn-0003Qg-00; Sun, 02 Feb 2003 21:22:35 -0500 Original-Received: from mailgate4.nec.co.jp ([10.7.69.197])h132MLw20382; Mon, 3 Feb 2003 11:22:21 +0900 (JST) Original-Received: from mailsv4.nec.co.jp (mailgate51.nec.co.jp [10.7.69.196]) by mailgate4.nec.co.jp (8.11.6/3.7W-MAILGATE-NEC) with ESMTP id h132MK817315; Mon, 3 Feb 2003 11:22:20 +0900 (JST) Original-Received: from mcsss2.ucom.lsi.nec.co.jp ([10.30.114.133]) by mailsv4.nec.co.jp (8.11.6/3.7W-MAILSV4-NEC) with ESMTP id h132MGH12050; Mon, 3 Feb 2003 11:22:17 +0900 (JST) Original-Received: from mcspd15.ucom.lsi.nec.co.jp (mcspd15 [10.30.114.174]) id h132MCB13710; Mon, 3 Feb 2003 11:22:12 +0900 (JST) Original-Received: by mcspd15.ucom.lsi.nec.co.jp (Postfix, from userid 31295) id AA33F36F6; Mon, 3 Feb 2003 11:22:12 +0900 (JST) Original-To: Kenichi Handa System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <200302030211.LAA24365@etlken.m17n.org> Original-Lines: 33 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:11299 gmane.comp.gnu.core-utils.bugs:96 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11299 Kenichi Handa writes: > > 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. ... > 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). > > [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. Why? I think it just means that the bug was introduced after fileutils-4.1. -miles -- `Life is a boundless sea of bitterness'