From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#2497: 23.0.91; Fails to read UTF-8 on Win2k Date: Tue, 03 Mar 2009 11:34:45 -0500 Message-ID: References: <877i3c55tg.fsf@tum.de> <87ljrromgg.fsf@tum.de> Reply-To: Stefan Monnier , 2497@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1236098767 17796 80.91.229.12 (3 Mar 2009 16:46:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Mar 2009 16:46:07 +0000 (UTC) Cc: 2497@emacsbugs.donarmstrong.com, uwe.siart@tum.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 03 17:47:23 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 1LeXm5-0004pG-3V for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Mar 2009 17:47:21 +0100 Original-Received: from localhost ([127.0.0.1]:44802 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LeXkj-00023h-V6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Mar 2009 11:45:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LeXia-0000QM-EG for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2009 11:43:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LeXiY-0000Pc-U5 for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2009 11:43:43 -0500 Original-Received: from [199.232.76.173] (port=42581 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LeXiY-0000PW-MO for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2009 11:43:42 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59854) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LeXiY-00026O-6F for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2009 11:43:42 -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 n23Ghd9t011134; Tue, 3 Mar 2009 08:43:39 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n23Ge42h009947; Tue, 3 Mar 2009 08:40:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 03 Mar 2009 16:40:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2497 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2497-submit@emacsbugs.donarmstrong.com id=B2497.12360980968350 (code B ref 2497); Tue, 03 Mar 2009 16:40:04 +0000 Original-Received: (at 2497) by emacsbugs.donarmstrong.com; 3 Mar 2009 16:34:56 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from chene.dit.umontreal.ca (chene.dit.umontreal.ca [132.204.246.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n23GYmwd008341 for <2497@emacsbugs.donarmstrong.com>; Tue, 3 Mar 2009 08:34:50 -0800 Original-Received: from alfajor.home (vpn-132-204-232-170.acd.umontreal.ca [132.204.232.170]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n23GYknd005904; Tue, 3 Mar 2009 11:34:46 -0500 Original-Received: by alfajor.home (Postfix, from userid 20848) id 0FA93A22E6; Tue, 3 Mar 2009 11:34:46 -0500 (EST) In-Reply-To: (Eli Zaretskii's message of "Mon, 02 Mar 2009 21:25:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3222=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 03 Mar 2009 11:43:43 -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:25940 Archived-At: >> So, again, the bug is in the ordering > Actually, the OP was complaining that, even with this ordering, Emacs > 23 did TRT for him, and that a recent change broke that. That bug is > fixed now, I believe, so you are talking about a more general problem. Yes. I didn't realize that the reason why it worked before is because we were luckly. >> we have to figure out which code ends up putting latin-1 before utf-8 in >> the coding system priority. > Well, I think this is fairly easy: set-locale-environment does it. > Observe: > (defun set-locale-environment (&optional locale-name frame) [...] >>>>>> (prefer-coding-system coding-system) [...] > Even the doc string says that the coding system priority is set > according to the locale's native encoding. Indeed, thanks for spotting it. Can someone change this code so it doesn't move utf-8 from first to second place? Stefan