emacs-devel
[Top][All Lists]
Advanced

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

Re: coding tags and utf-16


From: Kenichi Handa
Subject: Re: coding tags and utf-16
Date: Thu, 05 Jan 2006 13:33:43 +0900
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

In article <address@hidden>, "Richard M. Stallman" <address@hidden> writes:

>     If a file is encoded without BOM, we must use the less
>     reliable heuristics to guess utf-16be or utf-16le.  If you
>     find a coding-tag spec by ignoring all zero bytes at even
>     byte indexes, it means that the file is, in high
>     possibility, utf-16be whatever the tag value is.  If you
>     find a coding-tag spec by ignoring all zero bytes at odd
>     byte indexes, it means that the file is utf-16le whatever
>     the tag value is.

> Does Emacs already implement these heuristics?

No.

>     But, those are anyway just heuristics; not 100% reliable.
>     So I think we need a user option to turn it on and off, or
>     perhaps a user option to select which kind of heuristics.

> Should we install this option now?

I can't tell whether or not it's important enough to install
now because I never encountered a utf-16 file.

---
Kenichi Handa
address@hidden




reply via email to

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