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: Sat, 11 Jan 2003 15:16:13 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20030111201613.GA5710@gnu.org> References: <200301112000.h0BK0Ct04343@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042316330 8769 80.91.224.249 (11 Jan 2003 20:18:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 11 Jan 2003 20:18:50 +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 18XS5h-0002HG-00 for ; Sat, 11 Jan 2003 21:18:49 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18XSCL-0008Dn-00 for ; Sat, 11 Jan 2003 21:25:42 +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 18XS47-0000m6-05 for emacs-devel@quimby.gnus.org; Sat, 11 Jan 2003 15:17:11 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18XS3n-0000gH-00 for emacs-devel@gnu.org; Sat, 11 Jan 2003 15:16:51 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18XS3D-0000D0-00 for emacs-devel@gnu.org; Sat, 11 Jan 2003 15:16:16 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18XS3C-00009z-00; Sat, 11 Jan 2003 15:16:14 -0500 Original-Received: from miles by fencepost.gnu.org with local (Exim 4.10) id 18XS3B-0001W5-00; Sat, 11 Jan 2003 15:16:13 -0500 Original-To: Stefan Monnier Content-Disposition: inline In-Reply-To: <200301112000.h0BK0Ct04343@rum.cs.yale.edu> User-Agent: Mutt/1.3.28i Blat: Foop Original-cc: Miles Bader 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:10664 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10664 On Sat, Jan 11, 2003 at 03:00:12PM -0500, Stefan Monnier wrote: > > It doesn't seem simple to get the byte offset information, so perhaps the > > best thing to do is simply not use --dired if `file-name-coding-system' is > > a multibyte encoding. That change is simple to make in dired (and I just > > manually set `dired-use-ls-dired' to nil), but I'm not sure how to tell if > > a particular coding system is multibyte or not. It'd be nice if there was > > a function like `coding-system-multibyte-p'... > > 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. Won't the decode-coding-region smash all the text-properties? -Miles -- Come now, if we were really planning to harm you, would we be waiting here, beside the path, in the very darkest part of the forest?