From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#4712: File encoding Date: Thu, 15 Oct 2009 11:38:05 +0200 Message-ID: References: <83fx9lj0zm.fsf@gnu.org> Reply-To: Andreas Schwab , 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 1255601008 11013 80.91.229.12 (15 Oct 2009 10:03:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2009 10:03:28 +0000 (UTC) Cc: 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 12:03:19 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 1MyNAv-0001mM-Gv for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Oct 2009 12:03:13 +0200 Original-Received: from localhost ([127.0.0.1]:43892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyNAu-00013b-UI for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Oct 2009 06:03:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MyMvX-0006se-SX for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2009 05:47:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MyMvS-0006pw-J6 for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2009 05:47:18 -0400 Original-Received: from [199.232.76.173] (port=52537 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyMvS-0006ph-C0 for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2009 05:47:14 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40938) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MyMvR-0005WU-Pw for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2009 05:47: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 n9F9lBWf031495; Thu, 15 Oct 2009 02:47:11 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9F9e58b030123; Thu, 15 Oct 2009 02:40:05 -0700 Resent-Date: Thu, 15 Oct 2009 02:40:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Andreas Schwab Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 15 Oct 2009 09:40:05 +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.125559949129917 (code B ref 4712); Thu, 15 Oct 2009 09:40:05 +0000 Original-Received: (at 4712) by emacsbugs.donarmstrong.com; 15 Oct 2009 09:38:11 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9F9c9CB029912 for <4712@emacsbugs.donarmstrong.com>; Thu, 15 Oct 2009 02:38:10 -0700 Original-Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9F9c8l5032400; Thu, 15 Oct 2009 05:38:08 -0400 Original-Received: from hase.home (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9F9c5wM023280; Thu, 15 Oct 2009 05:38:06 -0400 X-Yow: MERYL STREEP is my obstetrician! In-Reply-To: (Stefan Monnier's message of "Wed, 14 Oct 2009 23:16:32 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 15 Oct 2009 05:47: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:31962 Archived-At: Stefan Monnier writes: >>> > 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. Why do you think this is a bug? The designated coding cannot encode the buffer, so some other encoding must be selected. That's the whole point of the message. It's the same when you force a coding with C-x C-m C-f, except that then you get the more detailed message. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."