Dave Love wrote:
Kenichi Handa <[EMAIL PROTECTED]> writes:
I think it's possible to detect utf-16 by using heuristics
with high accuracy. I'll try it in emacs-unicode.
Yes. Perhaps someone knows exactly what Windows does (assuming the
only significant use of it is in Windows)?
Exactly what Windows does for what? Recognizing a utf-16 registry file
when opened in the registry editor?
If they have common name or extension, we can add it in
file-coding-system-alist. Do they?
As far as I remember, .reg is a recognized extension which invokes
regedit, but I don't know whether it would be correct or particularly
useful to add .reg.
I don't recommend binding .reg to a single encoding. All Windows registry
files use the .reg extension, but there are two formats. For Windows NT and
older, registry files are encoded in the OS's locale-specific character set
(for English, cp1252). For Windows 2000 and newer, registry files use utf-16.
-Dave
_______________________________________________
Emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug