From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?B?R3LpZ29yeQ==?= SCHMITT Newsgroups: gmane.emacs.help Subject: Re: UTF-8 in path / filename Date: Sat, 26 Aug 2006 00:06:27 +0200 Message-ID: <20060826000627.b8b44e95.gregory.schmitt@free.fr> References: <7D07BEAB-2279-48C5-BB9A-3FF3A15D0FED@Web.DE> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: sea.gmane.org 1156544312 7126 80.91.229.2 (25 Aug 2006 22:18:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 25 Aug 2006 22:18:32 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 26 00:18:26 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GGk0N-000410-VZ for geh-help-gnu-emacs@m.gmane.org; Sat, 26 Aug 2006 00:18:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GGk0N-0002wj-Fh for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Aug 2006 18:18:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GGjoc-0002go-H0 for help-gnu-emacs@gnu.org; Fri, 25 Aug 2006 18:06:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GGjob-0002gA-Ez for help-gnu-emacs@gnu.org; Fri, 25 Aug 2006 18:06:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GGjob-0002g6-Ae for help-gnu-emacs@gnu.org; Fri, 25 Aug 2006 18:06:13 -0400 Original-Received: from [84.96.92.56] (helo=smTp.neuf.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GGjwx-0003h6-MO for help-gnu-emacs@gnu.org; Fri, 25 Aug 2006 18:14:52 -0400 Original-Received: from localhost.localdomain ([84.5.17.107]) by sp604003mt.gpm.neuf.ld (Sun Java System Messaging Server 6.2-5.05 (built Feb 16 2006)) with ESMTP id <0J4K00M5LQQ8M5E0@sp604003mt.gpm.neuf.ld> for help-gnu-emacs@gnu.org; Sat, 26 Aug 2006 00:06:08 +0200 (CEST) In-reply-to: <7D07BEAB-2279-48C5-BB9A-3FF3A15D0FED@Web.DE> Original-To: Peter Dyballa X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.15; i686-pc-linux-gnu) X-Mailman-Approved-At: Fri, 25 Aug 2006 18:18:12 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:36937 Archived-At: > ----- Original Message ----- > Date: Fri, 25 Aug 2006 20:35:08 +0200 > From: Peter Dyballa > To: Gr=E9gory SCHMITT > Cc: help-gnu-emacs@gnu.org > Subject: Re: UTF-8 in path / filename >=20 > Am 25.08.2006 um 15:42 schrieb Gr=E9gory SCHMITT: >=20 > > If I set emacs to run in unibyte mode (with --unibyte on the comm= and > > line), it does work, but the file content (which is UTF-8) is = =20 > > parsed as > > 8859-15. > > >=20 > This looks as if your system does not use UTF-8 ... I thought Fedora uses UTF-8 by default. > Can you create a file with accented characters? If not, can you put= a =20 > copy of the file in the Gr=E9gory directory into your home or some = =20 > other directory and invoke emacs, with or with no unibytes, with bo= th =20 > files? In the first case the accented name would appear in the mode= -=20 > line of the buffer (and would see what was passed or received as = =20 > argument), in the latter case GNU Emacs would put the directory's = =20 > name in the mode-line, I hope, to distinguish the two files with th= e =20 > same name. Again, you would see what was passed or received as = =20 > "Gr=E9gory" ... >=20 > If the file names are or are not UTF-8, you can declare this =20 > in .emacs with: >=20 > =09(setq default-file-name-coding-system 'utf-8) > =09(setq default-file-name-coding-system 'iso-8859-15) OK. So I have tow folders, "Greg" and "Gr=E9gory" in my home (ext3 filesystem, default options). I now have two file, "test" and "test= =E9" in each of them, plus in the current directory. Those files have the same Utf-8 content, so I'm able to tell if they're parsed correctly o= r not. First case, with multibyte: - both files in the "Greg" folder are visited correctly: file is opened, content looks ok. However, the buffer name for "test=E9" appe= ars as "test=C0" (or sth like that), which in my mind is proof that the f= ile name is actually UTF-8 and displayed like ISO. - both files in the "Gr=E9gory" folder are not visited. Manually visi= ting the files works fine however, and the buffer name is correct ("test= =E9" is spelled correctly).File content is ok as well. - both files in the current directory are visited ok, content is ok, buffer name NOT ok. Second, with unibyte: - "Greg" folder: files visited ok, content NOT ok, buffer name NOT ok= . - "Gr=E9gory" folder: files visited ok, content NOT ok, buffer name N= OT ok. - both files in the current directory are visited ok, content NOT ok, buffer name NOT ok. Hope that helps. As for me, I'm stuck... --=20 Gr=E9gory SCHMITT