From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Karl Eichwalder Newsgroups: gmane.emacs.devel Subject: Re: cvs-quickdir and UTF-8 encoded file names Date: Mon, 25 Aug 2003 06:16:19 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200308210136.KAA06356@etlken.m17n.org> <200308210626.PAA06725@etlken.m17n.org> <200308250114.KAA16654@etlken.m17n.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1061793039 9527 80.91.224.253 (25 Aug 2003 06:30:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Aug 2003 06:30:39 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Aug 25 08:30:37 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19rAs9-0003tU-00 for ; Mon, 25 Aug 2003 08:30:37 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19rAxZ-00041M-00 for ; Mon, 25 Aug 2003 08:36:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19rArY-0003lh-Cc for emacs-devel@quimby.gnus.org; Mon, 25 Aug 2003 02:30:00 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19rArA-0003ju-Dj for emacs-devel@gnu.org; Mon, 25 Aug 2003 02:29:36 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19rAqc-0003LF-UI for emacs-devel@gnu.org; Mon, 25 Aug 2003 02:29:34 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19rApv-0002oe-6a for emacs-devel@gnu.org; Mon, 25 Aug 2003 02:28:19 -0400 Original-Received: from [193.175.24.41] (helo=elvis.franken.de) by mx20.gnu.org with esmtp (Exim 4.20) id 19rApo-0000aE-OS for emacs-devel@gnu.org; Mon, 25 Aug 2003 02:28:12 -0400 Original-Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 19r8yV-0000Iz-00; Mon, 25 Aug 2003 06:29:03 +0200 Original-Received: by tux.gnu.franken.de (Postfix, from userid 270) id EA4087CCD5; Mon, 25 Aug 2003 06:16:19 +0200 (CEST) Original-To: Kenichi Handa In-Reply-To: <200308250114.KAA16654@etlken.m17n.org> (Kenichi Handa's message of "Mon, 25 Aug 2003 10:14:16 +0900 (JST)") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16141 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16141 Kenichi Handa writes: > I found an invalid UTF-8 sequence at 279th line. It seems > that the file name on this line is in ISO-8859-1, not UTF-8. Thanks for tracking down my error; the file name on my disk is also ISO-8859-1 encoded. I might have slipped in when I have started Emacs within an ISO-8859-1 environment by accident. > Thus, Emacs failed to detect it as utf-8, and decoded it by > raw-text. > > Perhaps the file Entries should be read by: > > (let ((coding-system-for-read (or default-file-name-coding-system > file-name-coding-system))) > ...) If it is possible to detect some such encoding mismatch, Emacs should raise an exception telling the user the how to solve the problem: Convert file name Use raw text Use UTF-8 Sorry, I cannot answer the other questions. Thanks again for your help. -- | ,__o http://www.gnu.franken.de/ke/ | _-\_<, ke@suse.de (work) / keichwa@gmx.net (home) | (*)/'(*)