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: Wed, 14 Oct 2009 20:15:25 +0200 Message-ID: <83fx9lj0zm.fsf@gnu.org> References: Reply-To: Eli Zaretskii , 4712@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1255544945 22856 80.91.229.12 (14 Oct 2009 18:29:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Oct 2009 18:29:05 +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 Wed Oct 14 20:28:53 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 1My8aj-0003wA-2Q for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Oct 2009 20:28:53 +0200 Original-Received: from localhost ([127.0.0.1]:34406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1My8ai-0005fA-Dy for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Oct 2009 14:28:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1My8ZF-0004xV-Gl for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 14:27:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1My8Z9-0004td-TE for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 14:27:20 -0400 Original-Received: from [199.232.76.173] (port=53426 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1My8Z9-0004tO-Nf for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 14:27:15 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39610) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1My8Z8-00014B-68 for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 14: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 n9EIRAmH012334; Wed, 14 Oct 2009 11:27:12 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9EIK6RZ011227; Wed, 14 Oct 2009 11:20:06 -0700 Resent-Date: Wed, 14 Oct 2009 11:20: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: Wed, 14 Oct 2009 18:20: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.125554401810326 (code B ref 4712); Wed, 14 Oct 2009 18:20:05 +0000 Original-Received: (at 4712) by emacsbugs.donarmstrong.com; 14 Oct 2009 18:13:38 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mtaout20.012.net.il (mtaout20.012.net.il [80.179.55.166]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9EIDawu010302 for <4712@emacsbugs.donarmstrong.com>; Wed, 14 Oct 2009 11:13:38 -0700 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0KRI00H00NVB7K00@a-mtaout20.012.net.il> for 4712@emacsbugs.donarmstrong.com; Wed, 14 Oct 2009 20:13:27 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.70.117.47]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KRI00DGANYE8770@a-mtaout20.012.net.il>; Wed, 14 Oct 2009 20:13:27 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 14 Oct 2009 14:27:20 -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:31932 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 11:19:47 -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. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Except that we probably do it only _after_ defaulting to UTF-8.