From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.bugs 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 Message-ID: <87y6w5jqqo.fsf@engster.org> Reply-To: David Engster , 2354@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1234883976 4442 80.91.229.12 (17 Feb 2009 15:19:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Feb 2009 15:19:36 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 17 16:20:52 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LZRka-0001vs-Sc for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Feb 2009 16:20:45 +0100 Original-Received: from localhost ([127.0.0.1]:39441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZRjG-0002OF-Mo for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Feb 2009 10:19:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZNjo-0000G9-9p for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2009 06:03:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZNjm-0000F8-CS for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2009 06:03:39 -0500 Original-Received: from [199.232.76.173] (port=34862 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZNjl-0000F2-VR for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2009 06:03:38 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58773) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LZNjl-0001eS-7x for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2009 06:03:37 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1HB3ZMX001616; Tue, 17 Feb 2009 03:03:35 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1HAj2QX029439; Tue, 17 Feb 2009 02:45:02 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: David Engster Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 17 Feb 2009 10:45:02 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2354 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123486694028167 (code B ref -1); Tue, 17 Feb 2009 10:45:02 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 17 Feb 2009 10:35:40 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1HAZVl4028159 for ; Tue, 17 Feb 2009 02:35:33 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZNIY-0003fK-Sq for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2009 05:35:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZNIR-0003VJ-Qq for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2009 05:35:25 -0500 Original-Received: from [199.232.76.173] (port=51423 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZNIQ-0003UY-NL for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2009 05:35:22 -0500 Original-Received: from m61s02.vlinux.de ([83.151.21.164]:48492) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LZNIQ-0007hp-1t for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2009 05:35:22 -0500 Original-Received: from dslb-082-083-056-080.pools.arcor-ip.net ([82.83.56.80] helo=void) by m61s02.vlinux.de with esmtpsa (TLS-1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.63) (envelope-from ) id 1LZNKC-0001iN-Ng for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2009 11:37:12 +0100 User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.90 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 17 Feb 2009 06:03:39 -0500 X-Mailman-Approved-At: Tue, 17 Feb 2009 10:19:18 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25366 Archived-At: 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 "=E2\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=3D/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 r C-g M-x s e t - l a n =20 L a t i n w - w =20 1 M-x r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Quit Making completion list...