all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Engster <deng@randomsample.de>
To: bug-gnu-emacs@gnu.org
Subject: bug#2354: 23.0.90; Emacs fails to detect utf-8 encoding with language environment Latin-1
Date: Tue, 17 Feb 2009 11:35:11 +0100	[thread overview]
Message-ID: <87y6w5jqqo.fsf@engster.org> (raw)

This is what I believe to be a regression in CVS Emacs since the
23.0.90 pretest. I'm using a fresh CVS checkout from 2009-02-17,
compiled with 'make bootstrap'.

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.

Expected behaviour: Emacs should detect utf-8 encoding and display
correct character.

Please note that this has worked without problems with the Emacs
23.0.90 pretest, so it must be due to some change(s) since then in CVS.

In GNU Emacs 23.0.90.1 (i686-pc-linux-gnu, GTK+ Version 2.12.11)
 of 2009-02-17 on void
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
configured using `configure  '--prefix=/usr/local/emacs''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x r e p o <tab> r <tab> C-g M-x s e t - l a n <tab> 
<return> L a t i n w <backspace> - w <return> <backspace> 
1 <return> M-x r e p o <tab> r <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...
Quit
Making completion list...







             reply	other threads:[~2009-02-17 10:35 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <uzlg6oiq3.fsf@gnu.org>
2009-02-17 10:35 ` David Engster [this message]
2009-02-17 16:45   ` bug#2354: 23.0.90; Emacs fails to detect utf-8 encoding with language environment Latin-1 Juanma Barranquero
2009-02-17 18:04     ` David Engster
2009-02-28 12:30   ` bug#2354: marked as done (23.0.90; Emacs fails to detect utf-8 encoding with language environment Latin-1) Emacs bug Tracking System
2009-02-27 14:10 ` bug#2497: 23.0.91; Fails to read UTF-8 on Win2k Uwe Siart
2009-02-27 16:03   ` Eli Zaretskii
2009-02-27 16:48     ` Uwe Siart
2009-02-27 18:19       ` Eli Zaretskii
2009-02-27 20:35         ` Uwe Siart
2009-02-28  4:40         ` Stefan Monnier
2009-02-28  8:17           ` Uwe Siart
2009-02-28 10:14             ` David Engster
2009-02-28 12:09               ` Eli Zaretskii
2009-02-28 14:16                 ` Jason Rumney
2009-02-28 14:31                 ` David Engster
2009-02-28 22:00             ` Stefan Monnier
2009-02-28 10:49           ` Eli Zaretskii
2009-02-28 12:16             ` Uwe Siart
2009-02-28 22:04             ` Stefan Monnier
2009-03-02 11:43             ` Kenichi Handa
2009-03-02 15:25               ` Stefan Monnier
2009-03-02 19:25                 ` Eli Zaretskii
2009-03-03 16:34                   ` Stefan Monnier
2009-02-27 16:11   ` Juanma Barranquero
2009-02-27 16:16     ` Juanma Barranquero
2009-02-27 16:27       ` Uwe Siart
2009-02-27 16:32         ` Juanma Barranquero
2009-02-27 16:23     ` Uwe Siart
2009-02-27 16:38       ` Juanma Barranquero
2009-02-27 18:19         ` Eli Zaretskii
2009-02-27 20:38           ` Juanma Barranquero
2009-02-28  1:29           ` Jason Rumney
2009-02-27 17:02     ` Leo
2009-02-27 17:46   ` David Engster
2009-02-27 21:15     ` Uwe Siart
2009-02-28  1:32     ` Jason Rumney
2009-02-28  1:35       ` Processed (with 5 errors): " Emacs bug Tracking System
2009-02-27 23:34   ` bug#2497: 23.0.91; Fails to read UTF-8 on Windows2k Richard M Stallman
2009-02-28  9:47     ` Uwe Siart
2009-02-28 18:08       ` Richard M Stallman
2009-02-28 12:30   ` bug#2497: marked as done (23.0.91; Fails to read UTF-8 on Win2k) Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y6w5jqqo.fsf@engster.org \
    --to=deng@randomsample.de \
    --cc=2354@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.