From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Strange behaviour with dired and UTF8 Date: Sat, 3 May 2003 19:59:09 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <8765osrpfr.fsf@tleepslib.sk.tsukuba.ac.jp> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1051984787 2059 80.91.224.249 (3 May 2003 17:59:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 3 May 2003 17:59:47 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat May 03 19:59:45 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19C1IX-0000X5-00 for ; Sat, 03 May 2003 19:59:45 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19C1Kf-000311-00 for ; Sat, 03 May 2003 20:01:58 +0200 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 19C1Iv-0006gH-03 for emacs-devel@quimby.gnus.org; Sat, 03 May 2003 14:00:09 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19C1Ia-0006Wr-00 for emacs-devel@gnu.org; Sat, 03 May 2003 13:59:48 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19C1IX-0006PY-00 for emacs-devel@gnu.org; Sat, 03 May 2003 13:59:47 -0400 Original-Received: from stubby.bodenonline.com ([193.201.16.94]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19C1IW-0006Bd-00 for emacs-devel@gnu.org; Sat, 03 May 2003 13:59:44 -0400 Original-Received: from accessno42.bodenonline.com (IDENT:root@accessno42.bodenonline.com [193.201.16.44]) h43IoBbL015350; Sat, 3 May 2003 20:50:17 +0200 Original-To: "Stephen J. Turnbull" In-Reply-To: <8765osrpfr.fsf@tleepslib.sk.tsukuba.ac.jp> X-Mailer: Apple Mail (2.552) Original-cc: Kenichi Handa 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:13657 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13657 l=F6rdagen den 3 maj 2003 kl 17.59 skrev Stephen J. Turnbull: >>>>>> "Jan" =3D=3D Jan D writes: > > Jan> But then you would be using non-printable latin-1 characters. > > That's impossible. By definition, all Latin 1 is printable Then every implementation of isprint() is wrong :-). Character 128-159 is not printable, I think. Nor is the non-printable part that is in the ASCII subset. > Jan> I don't think this is something one has to handle. > > Maybe not you. Emacs has high standards, though. :-) Emacs would have to be able to read minds to do this correctly. It is possible to make a buffer contain characters that looks fine when viewed as UTF-8, but Emacs can not know if the user actually wanted this to be latin-1. It is just an interpretation of how octets shall be viewed. That is why I would like to say to dired "Show me these file names interpreted as UTF-8" and then later "show me these file names interpreted as latin-1", and also be able to operate on the files. Jan D.