emacs seems not to handle utf-8 filenames at all, regardless of locale.

On 3/17/07, SrinTuar <[EMAIL PROTECTED]> wrote:
> The test suite is currently distributed as a zip file. It so happens
> that the file concerned is named using ISO-8859-1 on the distributors
> system. On my system, doing ls from the GNOME console shows the name
> as xgespr?ch.xml. Whereas Emacs dired shows the name as
> xgespräch.xml.

Zip files treat filenames as byte arrays, so zip tends to be clumsy when you get
zipfiles created on legacy systems. Its compatible with utf-8 at
least, so zipfiles you
make yourself should have no problems.

> So I went back to LANG=en_GB.UTF-8, unzipped the distribution again,
> and re-named the file, thanks to your help.
>
> ls now shows the correct file name. Emacs shows
> xgespräch.xml. And the test works.

I tried emacs and saw the same problem you did.  vim seems to work
correctly with locales.
Allthough advising a switch to vim is probably more responsible,
a quick seach revealed this link: http://linux.seindal.dk/item32.html



> Has anyone any illuminating comments to make? I'm particularly
> interested in the distribution problem.

You could have the distributor change his locale to utf-8 and rename the files
on his filesystem.

Reply via email to