Hi Gaëtan,

> Benjamin Riefenstahl wrote on 07 Jul 2005 20:56:42 +0200:
>>    (prefer-coding-system 'utf-16le-with-signature)
>>    (prefer-coding-system 'latin-9)

Gaëtan LEURENT writes:
> That would try latin-9 first, and if the file is valid as latin-9
> (which is quite likely), it will fail. [...]

I thought it would not detect a UTF-16 file as Latin-9 because of all
the NUL characters you get when you try to interpret UTF-16 as an
8-bit encoding.

I just did a test and sadly, detection of Latin-9 seems to like those
NUL characters fine, even though nobody would ever write such a file.
Pity.

benny



_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to