GNU bug report logs - #2354
23.0.90; Emacs fails to detect utf-8 encoding with language environment Latin-1

Previous Next

Package: emacs;

Reported by: David Engster <deng <at> randomsample.de>

Date: Tue, 17 Feb 2009 10:45:02 UTC

Severity: normal

Merged with 2497

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 2354 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: David Engster <deng <at> randomsample.de>
Cc: 2354 <at> debbugs.gnu.org
Subject: Re: bug#2354: 23.0.90; Emacs fails to detect utf-8 encoding with 
	language environment Latin-1
Date: Tue, 17 Feb 2009 17:45:59 +0100
On Tue, Feb 17, 2009 at 11:35, David Engster <deng <at> randomsample.de> wrote:

> You can reproduce it as follows:
>
> 1. emacs -Q
> 2. M-x set-language-environment RET Latin-1 RET
> 3. In some buffer write:
>
>  (ucs-insert "2500")
>
> 4. Eval it, so that the unicode character is inserted into the buffer.
> 5. Save the file and choose utf-8 as encoding.
> 6. Kill the buffer.
> 7. Load the file you just saved.
>
> Result: Emacs displays "รข\224\200" for the unicode character.

I cannot reproduce it on Windows with the current trunk. The file's
coding is correctly detected as UTF-8.

    Juanma




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.