From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; Defaut encoding for XML files should be undefined (instead of utf-8) Date: Tue, 19 Feb 2008 22:47:47 +0000 Message-ID: <47BB5C93.2040201@gnu.org> References: <87odaifv16.fsf@mundaneum.com> <87r6fd5q12.fsf@uwakimon.sk.tsukuba.ac.jp> <47B6B3CC.1080101@gnu.org> <87wsp5xhz4.fsf@uwakimon.sk.tsukuba.ac.jp> <47B6D1ED.6020601@gmail.com> <87r6fcxms7.fsf@uwakimon.sk.tsukuba.ac.jp> <47B8452F.6090504@gmail.com> <87odafxluc.fsf@uwakimon.sk.tsukuba.ac.jp> <87bq6fnrpt.fsf@catnip.gol.com> <87hcg7xh2h.fsf@uwakimon.sk.tsukuba.ac.jp> <87ablyye32.fsf@uwakimon.sk.tsukuba.ac.jp> <8763wlxvn3.fsf@uwakimon.sk.tsukuba.ac.jp> <87zltwwte1.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1203461296 18102 80.91.229.12 (19 Feb 2008 22:48:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Feb 2008 22:48:16 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, "Lennart Borgman \(gmail\)" , Edward O'Connor , emacs-devel@gnu.org, Stefan Monnier , Miles Bader To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 19 23:48:39 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JRbGQ-0001UE-Cx for ged-emacs-devel@m.gmane.org; Tue, 19 Feb 2008 23:48:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRbFv-0006U9-K9 for ged-emacs-devel@m.gmane.org; Tue, 19 Feb 2008 17:48:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JRbFo-0006RZ-ST for emacs-devel@gnu.org; Tue, 19 Feb 2008 17:48:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JRbFn-0006QZ-UT for emacs-devel@gnu.org; Tue, 19 Feb 2008 17:48:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRbFn-0006QT-B4 for emacs-devel@gnu.org; Tue, 19 Feb 2008 17:47:59 -0500 Original-Received: from mk-outboundfilter-4.mail.uk.tiscali.com ([212.74.114.32]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JRbFg-0000ya-Fi; Tue, 19 Feb 2008 17:47:52 -0500 Original-X-Trace: 9212379/mk-outboundfilter-2.mail.uk.tiscali.com/F2S/$ACCEPTED/freedom2Surf-customers/83.67.23.108 X-SBRS: None X-RemoteIP: 83.67.23.108 X-IP-MAIL-FROM: jasonr@gnu.org X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAIHqukdTQxds/2dsb2JhbAAIjDGifg X-IronPort-AV: E=McAfee;i="5200,2160,5233"; a="9212379" X-IronPort-AV: E=Sophos;i="4.25,378,1199664000"; d="scan'208";a="9212379" X-IP-Direction: OUT Original-Received: from i-83-67-23-108.freedom2surf.net (HELO [127.0.0.1]) ([83.67.23.108]) by smtp.f2s.tiscali.co.uk with ESMTP/TLS/DHE-RSA-AES256-SHA; 19 Feb 2008 22:47:50 +0000 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: <87zltwwte1.fsf@uwakimon.sk.tsukuba.ac.jp> X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89607 gmane.emacs.pretest.bugs:21233 Archived-At: Stephen J. Turnbull wrote: > Not removed, disabled (in some cases). Specifically, if the *user* or > some application programmer uses `prefer-coding-system' with a > non-Unicode (non-UTF-8?) argument, he won't get the result he expects > for some XML files. (This is true of my proposal as well, but I'm > proposing that XML encoding be explicitly decoupled from Mule > guesswork, so it doesn't bother me.) > > In case you're forgotten, this is precisely the kind of behavior that > distresses the OP. > That's the behaviour that the OP thinks distresses him. But other encodings are highly unlikely to be mistaken for UTF-8, so in practice, pushing UTF-8 to the front of the prefer-coding-system queue is unlikely to distress him. What is really distressing the OP is that UTF-8 was previously forced, which caused his file to load with binary non-characters in place of his latin-1 characters, and if he doesn't notice it and edits the file, the only coding system he can save as is "raw-text" (and I'm not sure whether the result will be recoverable once he does that). Compounding that, is nxml-mode was ignoring the request to save as raw-text and forcing utf-8 again, which fails, so the changes cannot be saved.