GNU bug report logs -
#2497
23.0.91; Fails to read UTF-8 on Win2k
Previous Next
Reported by: uwe.siart <at> tum.de
Date: Fri, 27 Feb 2009 14:20:02 UTC
Severity: normal
Merged with 2354
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #50 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
On 2009-02-27 16:11 +0000, Juanma Barranquero wrote:
> On Fri, Feb 27, 2009 at 15:10, Uwe Siart <uwe.siart <at> tum.de> wrote:
>
>> I'm using the windows port of 23.0.91 on Win2k SP4 and I found that it
>> fails to read utf-8 encoded files correctly. When visiting a file in
>> utf-8 encoding all characters above 255 are screwed up and "C-h C RET"
>> indicates iso-latin1-dos for saving the file. This has not been an
>> issue in 23.0.90.
>
> Do you have a specific example of a UTF-8 coded file that was detected
> as UTF-8 in 23.0.90 and it is detected as Latin-1 in 23.0.91?
>
> For example, I create a UTF-8 file (without UTF-8 byte-order-mark
> "signature") with just the following contents:
>
> cañón
>
> And 23.0.90 also thinks it is Latin-1.
>
> That said, if you need UTF-8 to be given more priority than Latin-1,
> etc, you can use `set-coding-system-priority' in your .emacs.
>
> Juanma
I have the following code in my .emacs when I changed to w32 last
June. So the problem might exist longer.
;;; FIXME: find out why GNU/Linux does not need this
(prefer-coding-system 'utf-8)
I just tested some Chinese files. Without that line, all of them are
being opened in latin-1 encoding and are unreadable.
Tested in GNU Emacs 23.0.91.1 (i386-mingw-nt5.1.2600) of 2009-02-26
--
.: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.
This bug report was last modified 16 years and 87 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.