emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: utf-16 not auto-detected when finding file


From: Kenichi Handa
Subject: Re: utf-16 not auto-detected when finding file
Date: Tue, 15 Mar 2005 15:27:03 +0900 (JST)
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3.50 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI)

In article <address@hidden>, Dave Love <address@hidden> writes:

> The encoding of a utf-16 file isn't detected correctly when finding
> the file.

> To reproduce: push 'coding-category-utf-16-le onto
> `coding-category-list', and put "foo" into a new buffer.  C-x h and
> M-x encode-coding-region mule-utf-16le-with-signature.  Then,
> correctly:
>   (detect-coding-region 1 (point-max) t)
>     => mule-utf-16le-with-signature-unix

> Save it to a file as binary and then C-x C-v.  It's detected as
> latin-1 (in a latin-1 locale).  It is read correctly if you specify
> the coding system for C-x C-v.

When you modify coding-category-list by hand, you must call
update-coding-systems-internal.

I've just added a sentent describing that to the docstring
of coding-category-list.

---
Ken'ichi HANDA
address@hidden




reply via email to

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