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#4712: File encoding Date: Wed, 14 Oct 2009 23:16:32 -0400 Message-ID: References: <83fx9lj0zm.fsf@gnu.org> Reply-To: Stefan Monnier , 4712@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 1255577300 14324 80.91.229.12 (15 Oct 2009 03:28:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2009 03:28:20 +0000 (UTC) Cc: schwab@linux-m68k.org, ezander@valkyrie.sc.cs.tu-bs.de, 4712@emacsbugs.donarmstrong.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 15 05:28:09 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 1MyH0a-0002T5-6g for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Oct 2009 05:28:08 +0200 Original-Received: from localhost ([127.0.0.1]:36713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyH0Z-0007Qi-Jh for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Oct 2009 23:28:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MyGzq-0006op-Qz for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 23:27:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MyGzm-0006kd-0S for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 23:27:22 -0400 Original-Received: from [199.232.76.173] (port=41877 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyGzl-0006k8-GI for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 23:27:17 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:42480) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MyGzk-00028r-JT for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 23:27:17 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9F3RBMX032022; Wed, 14 Oct 2009 20:27:12 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9F3PCjo031613; Wed, 14 Oct 2009 20:25:12 -0700 Resent-Date: Wed, 14 Oct 2009 20:25:12 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 15 Oct 2009 03:25:11 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4712 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4712-submit@emacsbugs.donarmstrong.com id=B4712.125557659930493 (code B ref 4712); Thu, 15 Oct 2009 03:25:11 +0000 Original-Received: (at 4712) by emacsbugs.donarmstrong.com; 15 Oct 2009 03:16:39 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.181]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9F3Gc5t030485 for <4712@emacsbugs.donarmstrong.com>; Wed, 14 Oct 2009 20:16:39 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqYEAAsx1kpMCqsb/2dsb2JhbACBUdgDhC4Eh3U X-IronPort-AV: E=Sophos;i="4.44,563,1249272000"; d="scan'208";a="47597369" Original-Received: from 76-10-171-27.dsl.teksavvy.com (HELO ceviche.home) ([76.10.171.27]) by ironport2-out.pppoe.ca with ESMTP; 14 Oct 2009 23:16:32 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 606CDB4100; Wed, 14 Oct 2009 23:16:32 -0400 (EDT) In-Reply-To: <83fx9lj0zm.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 14 Oct 2009 20:15:25 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 14 Oct 2009 23:27:22 -0400 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:31951 Archived-At: >> > Maybe so, but this part of the OP's report: >> >> > value of $LANG: en_AU.UTF-8 >> > locale-coding-system: utf-8 >> >> > indicates that UTF-8 is the "native" encoding on the OP's machine, and >> > there is an overwhelming user demand for silently and transparently >> > switch to such a native encoding when we need to select an encoding. >> >> The `coding' cookie trumps any such setting, since when we read the >> file, we will blindly obey the cookie without paying any attention to >> the user's locale. > Right, and we did: > Selected encoding mule-utf-8-unix disagrees with iso-8859-1-unix > specified by file contents. The fact that we even consider utf-8 is the bug, it means that the coding cookie didn't actually "trump" the locale setting. Stefan