From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dave Love 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 17:44:08 +0000 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> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044294654 1032 80.91.224.249 (3 Feb 2003 17:50:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 3 Feb 2003 17:50:54 +0000 (UTC) Cc: Kenichi Handa Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18fkk6-0000Fv-00 for ; Mon, 03 Feb 2003 18:50:50 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18fkrn-0001pP-00 for ; Mon, 03 Feb 2003 18:58:47 +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 18fkjO-0008Sb-05 for emacs-devel@quimby.gnus.org; Mon, 03 Feb 2003 12:50:07 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18fkgm-0006ON-00 for emacs-devel@gnu.org; Mon, 03 Feb 2003 12:47:24 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18fkdn-00052h-00 for emacs-devel@gnu.org; Mon, 03 Feb 2003 12:44:21 -0500 Original-Received: from albion.dl.ac.uk ([148.79.80.39]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18fkdg-0004ib-00; Mon, 03 Feb 2003 12:44:12 -0500 Original-Received: from fx by albion.dl.ac.uk with local (Exim 3.36 #1 (Debian)) id 18fkdc-0000ME-00; Mon, 03 Feb 2003 17:44:08 +0000 Original-To: Miles Bader Original-Lines: 36 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-cc: bug-coreutils@gnu.org Original-cc: emacs-pretest-bug@gnu.org Original-cc: schwab@suse.de 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:11325 gmane.comp.gnu.core-utils.bugs:109 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11325 Miles Bader writes: > Is it worth the trouble? I'm confused by what's being discussed here, but it is surely worth the trouble to have dired working properly in multibyte locales. > As far as I know the problem only occurs with > newlines in filenames, No. In locale en_GB.UTF-8 in Debian Woody, create a file with arbitrary Latin-1 characters in the name and observe that dired positioning screws up after that filename occurs. It works in 21.2 (using my utf-8 language definition) and worked in the development code as it was before Christmas. It no longer does in the development code. [I made some other changes to dired, unrelated to encoding and not installed, and thought I'd broken it somehow.] > Why is it more useful to count in characters? Because that makes it easier for Emacs, which is --dired's stated intention. > Of course that makes things a bit simpler for emacs, but counting in > bytes has the advantage that a tool doesn't have to be support the > coding system ls does in order to grab the filenames. That's exactly what I said, but if you don't support the encoding, you lose anyhow. [None of this actually helps people with an ls which doesn't support --dired, of course. I still think you should consider using a specified LC_TIME. If it's a real problem that users won't get the date in the format they expect, run ls twice, first to find the names with LC_TIME=C and then to display the results.]