From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: dired doesn't work properly with a multibyte locale Date: 23 Jan 2003 13:31:36 +0900 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200301151043.TAA09856@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 1043296339 29273 80.91.224.249 (23 Jan 2003 04:32:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 23 Jan 2003 04:32:19 +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 18bZ2H-0007bt-00 for ; Thu, 23 Jan 2003 05:32:17 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18bZ4M-00028v-00 for ; Thu, 23 Jan 2003 05:34:26 +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 18bZ2G-0008QL-06 for emacs-devel@quimby.gnus.org; Wed, 22 Jan 2003 23:32:16 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18bZ1v-0008Ma-00 for emacs-devel@gnu.org; Wed, 22 Jan 2003 23:31:55 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18bZ1u-0008JU-00 for emacs-devel@gnu.org; Wed, 22 Jan 2003 23:31:54 -0500 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.202]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18bZ1t-00086U-00; Wed, 22 Jan 2003 23:31:53 -0500 Original-Received: from mailgate4.nec.co.jp ([10.7.69.197])h0N4VdU15108; Thu, 23 Jan 2003 13:31:39 +0900 (JST) Original-Received: from mailsv4.nec.co.jp (mailgate52.nec.co.jp [10.7.69.198]) by mailgate4.nec.co.jp (8.11.6/3.7W-MAILGATE-NEC) with ESMTP id h0N4Vc813415; Thu, 23 Jan 2003 13:31:38 +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 h0N4VbH05738; Thu, 23 Jan 2003 13:31:37 +0900 (JST) Original-Received: from mcspd15.ucom.lsi.nec.co.jp (mcspd15 [10.30.114.174]) id h0N4VbB07907; Thu, 23 Jan 2003 13:31:37 +0900 (JST) Original-Received: by mcspd15.ucom.lsi.nec.co.jp (Postfix, from userid 31295) id EBE6737BD; Thu, 23 Jan 2003 13:31:36 +0900 (JST) Original-To: Kenichi Handa , Richard Stallman System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <200301151043.TAA09856@etlken.m17n.org> Original-Lines: 24 Original-cc: emacs-pretest-bug@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:10987 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10987 Kenichi Handa writes: > > The other solution is to get "ls --dired" output with a "binary" > > coding system, then use the byte-offsets to add text-properties, > > and then do the decode-coding-region. > > Yes. I think that is the correct fix. ... we can preserve > the text-property `dired-filename' by decoding one bunch by > one. Could you please try the attached patch? This patch seems to work well for me (it correctly parses directories that are completely screwed up by the old code). Richard Stallman writes: > That is a clever solution. It might be slow, but perhaps it is fast > enough for the job at hand. Miles, do you find it fast enough? It doesn't seem any noticably slower than the old dired on my system (both take some time to display a large directory, but I don't notice any difference between them). -Miles -- I'm beginning to think that life is just one long Yoko Ono album; no rhyme or reason, just a lot of incoherent shrieks and then it's over. --Ian Wolff