[Top][All Lists]
[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
- utf-16 not auto-detected when finding file, Dave Love, 2005/03/13
- Re: utf-16 not auto-detected when finding file,
Kenichi Handa <=
- Re: utf-16 not auto-detected when finding file, Dave Love, 2005/03/24
- Re: utf-16 not auto-detected when finding file, Kenichi Handa, 2005/03/25
- Re: utf-16 not auto-detected when finding file, Dave Love, 2005/03/25
- Re: utf-16 not auto-detected when finding file, Kenichi Handa, 2005/03/27
- Re: utf-16 not auto-detected when finding file, Dave Love, 2005/03/29
- Re: utf-16 not auto-detected when finding file, David Hunter, 2005/03/30
- Re: utf-16 not auto-detected when finding file, Jason Rumney, 2005/03/30
- Re: utf-16 not auto-detected when finding file, Kenichi Handa, 2005/03/30
- Re: utf-16 not auto-detected when finding file, Jason Rumney, 2005/03/30
- Re: utf-16 not auto-detected when finding file, Kenichi Handa, 2005/03/30