From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: dired doesn't work properly with a multibyte locale Date: Sat, 11 Jan 2003 15:00:12 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200301112000.h0BK0Ct04343@rum.cs.yale.edu> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042315276 5477 80.91.224.249 (11 Jan 2003 20:01:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 11 Jan 2003 20:01:16 +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 18XRog-0001Q4-00 for ; Sat, 11 Jan 2003 21:01:14 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18XRvK-00080u-00 for ; Sat, 11 Jan 2003 21:08:07 +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 18XRow-0000ds-0A for emacs-devel@quimby.gnus.org; Sat, 11 Jan 2003 15:01:30 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18XRoC-0008UI-00 for emacs-devel@gnu.org; Sat, 11 Jan 2003 15:00:44 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18XRoB-0008Ry-00 for emacs-devel@gnu.org; Sat, 11 Jan 2003 15:00:43 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18XRnn-0007x9-00; Sat, 11 Jan 2003 15:00:19 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id h0BK0Ct04343; Sat, 11 Jan 2003 15:00:12 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: 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:10663 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10663 > 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. Stefan