emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: setting utf-16 as file-name-coding-system locks up e


From: Kenichi Handa
Subject: Re: address@hidden: setting utf-16 as file-name-coding-system locks up emacs]
Date: Thu, 12 Aug 2004 20:36:12 +0900 (JST)
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI)

In article <address@hidden>, Mattis <address@hidden> writes:

> OK. So, the best would be to have the encoding set to
> "undecided" and then let Emacs figure out which encoding
> is used, right?

Unfortunately, no.  By that, Emacs may be able to decode the
file name corrrectly, but it doesn't remember the encoding
for the time it has to encode the file name.

I belive that Windows itself has a function to handle such a
file name consistently.  So, I think the best is to make a
speical coding system, say windows-file-name, that works
only for Windows.  It decodes file names into utf-8 sequence
(internal code of Emacs-Unicode), and encode file names into
locale encoding or utf-16le-with-signature depending on the
contents.

---
Ken'ichi HANDA
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]