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: Sat, 28 Feb 2009 17:04:35 -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 1235859894 4088 80.91.229.12 (28 Feb 2009 22:24:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Feb 2009 22:24:54 +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 Sat Feb 28 23:26:10 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 1LdXdH-0004kn-TU for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Feb 2009 23:26:08 +0100 Original-Received: from localhost ([127.0.0.1]:38593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdXbw-0006S6-VG for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Feb 2009 17:24:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LdXb1-00065K-9J for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2009 17:23:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LdXay-00063k-3i for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2009 17:23:45 -0500 Original-Received: from [199.232.76.173] (port=37844 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdXax-00063L-Jl for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2009 17:23:43 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47331) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LdXaw-0003yb-EN for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2009 17:23: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 n1SMNcNp014113; Sat, 28 Feb 2009 14:23:39 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1SMA44o010448; Sat, 28 Feb 2009 14:10: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: Sat, 28 Feb 2009 22:10: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.12358586848226 (code B ref 2497); Sat, 28 Feb 2009 22:10:04 +0000 Original-Received: (at 2497) by emacsbugs.donarmstrong.com; 28 Feb 2009 22:04:44 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1SM4fsU008212 for <2497@emacsbugs.donarmstrong.com>; Sat, 28 Feb 2009 14:04:42 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEABdEqUnO+JhN/2dsb2JhbACBWNUghBoGg3c X-IronPort-AV: E=Sophos;i="4.38,282,1233550800"; d="scan'208";a="34538338" Original-Received: from 206-248-152-77.dsl.teksavvy.com (HELO pastel.home) ([206.248.152.77]) by ironport2-out.teksavvy.com with ESMTP; 28 Feb 2009 17:04:35 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 873147FE9; Sat, 28 Feb 2009 17:04:35 -0500 (EST) In-Reply-To: (Eli Zaretskii's message of "Sat, 28 Feb 2009 12:49:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 28 Feb 2009 17:23:45 -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:25867 Archived-At: >> The guessing shouldn't give priority to buffer-file-coding-system. >> Instead we have the set-coding-system-priority instead. > Please give me some credit: I said ``the _default_value_ of > buffer-file-coding-system''. That default tells volumes about the > coding-system priorities. I'm sorry for my bad wording: what I wrote was only meant to describe the way the code is currently expected to work (AFAIK). > M-: (coding-system-priority-list) RET > => (iso-latin-1 utf-8 iso-2022-7bit iso-2022-7bit-lock iso-2022-8bit-ss2 emacs-mule raw-text iso-2022-jp in-is13194-devanagari chinese-iso-8bit utf-8-auto utf-8-with-signature utf-16 utf-16be-with-signature utf-16le-with-signature utf-16be utf-16le japanese-shift-jis undecided) > So UTF-8 is indeed ``pretty high'', but lower than the locale's > default. That seems to be the source of the problem. utf-8 should always come before latin-1 in that list, since utf-8 streams that are valid latin-1 streams are not uncommon, whereas latin-1 streams that are valid utf-8 streams are extremely rare. Stefan