all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Grégory SCHMITT" <gregory.schmitt@free.fr>
Cc: help-gnu-emacs@gnu.org
Subject: Re: UTF-8 in path / filename
Date: Sat, 26 Aug 2006 00:06:27 +0200	[thread overview]
Message-ID: <20060826000627.b8b44e95.gregory.schmitt@free.fr> (raw)
In-Reply-To: <7D07BEAB-2279-48C5-BB9A-3FF3A15D0FED@Web.DE>

> ----- Original Message -----
> Date: Fri, 25 Aug 2006 20:35:08 +0200
> From: Peter Dyballa <Peter_Dyballa@Web.DE>
> To: Grégory SCHMITT <gregory.schmitt@free.fr>
> Cc: help-gnu-emacs@gnu.org

> Subject: Re: UTF-8 in path / filename

> 
> Am 25.08.2006 um 15:42 schrieb Grégory SCHMITT:
> 
> > If I set emacs to run in unibyte mode (with --unibyte on the command
> > line), it does work, but the file content (which is UTF-8) is  
> > parsed as
> > 8859-15.
> >
> 
> 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  
> copy of the file in the Grégory directory into your home or some  
> other directory and invoke emacs, with or with no unibytes, with both  
> files? In the first case the accented name would appear in the mode- 
> line of the buffer (and would see what was passed or received as  
> argument), in the latter case GNU Emacs would put the directory's  
> name in the mode-line, I hope, to distinguish the two files with the  
> same name. Again, you would see what was passed or received as  
> "Grégory" ...
> 
> If the file names are or are not UTF-8, you can declare this  
> in .emacs with:
> 
> 	(setq default-file-name-coding-system 'utf-8)
> 	(setq default-file-name-coding-system 'iso-8859-15)

OK. So I have tow folders, "Greg" and "Grégory" in my home (ext3
filesystem, default options). I now have two file, "test" and "testé"
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 or
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é" appears
as "testÀ" (or sth like that), which in my mind is proof that the file
name is actually UTF-8 and displayed like ISO.
- both files in the "Grégory" folder are not visited. Manually visiting
the files works fine however, and the buffer name is correct ("testé" 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égory" folder: files visited ok, content NOT ok, buffer name NOT
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...

-- 
Grégory SCHMITT <mailto:gregory.schmitt@free.fr>

  reply	other threads:[~2006-08-25 22:06 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-24 13:59 UTF-8 in path / filename Grégory SCHMITT
2006-08-24 14:42 ` Noah Slater
2006-08-25 12:08 ` Peter Dyballa
     [not found] ` <mailman.5606.1156507702.9609.help-gnu-emacs@gnu.org>
2006-08-25 13:42   ` Grégory SCHMITT
2006-08-25 18:35     ` Peter Dyballa
2006-08-25 22:06       ` Grégory SCHMITT [this message]
2006-08-25 22:55         ` Peter Dyballa
     [not found]         ` <mailman.5656.1156546542.9609.help-gnu-emacs@gnu.org>
2006-08-25 23:06           ` Grégory SCHMITT
2006-08-25 23:09           ` Miles Bader
2006-08-26  9:36             ` Peter Dyballa
2006-08-26 22:13               ` James Cloos
2006-08-27 13:12                 ` Peter Dyballa
2006-08-28 15:11                   ` James Cloos
2006-08-28 15:55                     ` Peter Dyballa
     [not found]               ` <mailman.5694.1156630455.9609.help-gnu-emacs@gnu.org>
2006-08-27  8:46                 ` Harald Hanche-Olsen
     [not found]           ` <mailman.5657.1156547377.9609.help-gnu-emacs@gnu.org>
2006-08-25 23:22             ` Grégory SCHMITT
2006-08-25 23:25               ` Miles Bader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060826000627.b8b44e95.gregory.schmitt@free.fr \
    --to=gregory.schmitt@free.fr \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.