From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#4712: File encoding Date: Thu, 15 Oct 2009 03:20:11 -0400 Message-ID: References: <83fx9lj0zm.fsf@gnu.org> Reply-To: Eli Zaretskii , 4712@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1255591673 15261 80.91.229.12 (15 Oct 2009 07:27:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2009 07:27:53 +0000 (UTC) Cc: schwab@linux-m68k.org, ezander@valkyrie.sc.cs.tu-bs.de, 4712@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 15 09:27:42 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 1MyKkP-0000jI-JV for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Oct 2009 09:27:41 +0200 Original-Received: from localhost ([127.0.0.1]:43795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyKkO-0001jW-L1 for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Oct 2009 03:27:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MyKk3-0001Xs-Dp for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2009 03:27:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MyKjy-0001Ux-Ql for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2009 03:27:18 -0400 Original-Received: from [199.232.76.173] (port=43947 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyKjy-0001Uo-HD for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2009 03:27:14 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58098) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MyKjx-0000yn-MW for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2009 03:27:14 -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 n9F7RBdW007329; Thu, 15 Oct 2009 00:27:11 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9F7P6Ut006801; Thu, 15 Oct 2009 00:25:06 -0700 Resent-Date: Thu, 15 Oct 2009 00:25:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Eli Zaretskii Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 15 Oct 2009 07:25:06 +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.12555912156146 (code B ref 4712); Thu, 15 Oct 2009 07:25:06 +0000 Original-Received: (at 4712) by emacsbugs.donarmstrong.com; 15 Oct 2009 07:20:15 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9F7KDfv006038 for <4712@emacsbugs.donarmstrong.com>; Thu, 15 Oct 2009 00:20:14 -0700 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MyKd9-0001mg-Tr; Thu, 15 Oct 2009 03:20:11 -0400 In-reply-to: (message from Stefan Monnier on Wed, 14 Oct 2009 23:16:32 -0400) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 15 Oct 2009 03:27:18 -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:31959 Archived-At: > From: Stefan Monnier > Cc: 4712@emacsbugs.donarmstrong.com, schwab@linux-m68k.org, ezander@valkyrie.sc.cs.tu-bs.de > Date: Wed, 14 Oct 2009 23:16:32 -0400 > > >> > 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. Sigh... In case it wasn't clear, I didn't mean to say this is not a problem. I tried to explain why it happens, so that someone who cares could find the proper fix faster and without disrupting other important features while at that. But if no one wants to hear, I guess I'll crawl back under my rock...