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: Mon, 18 Feb 2008 02:49:27 +0000 Message-ID: <47B8F237.5000406@gnu.org> References: <87odaifv16.fsf@mundaneum.com> <47B61830.6020005@gnu.org> <87k5l5yfaj.fsf@catnip.gol.com> 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 1203302992 21023 80.91.229.12 (18 Feb 2008 02:49:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2008 02:49:52 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Edward O'Connor , emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 18 03:50:16 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 1JQw59-0007ZB-Oc for ged-emacs-devel@m.gmane.org; Mon, 18 Feb 2008 03:50:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQw4f-0008Ri-3P for ged-emacs-devel@m.gmane.org; Sun, 17 Feb 2008 21:49:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JQw4a-0008RC-P2 for emacs-devel@gnu.org; Sun, 17 Feb 2008 21:49:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQw4a-0008QO-4V for emacs-devel@gnu.org; Sun, 17 Feb 2008 21:49:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQw4a-0008QI-0z for emacs-devel@gnu.org; Sun, 17 Feb 2008 21:49:40 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JQw4Z-0003yn-JV for emacs-devel@gnu.org; Sun, 17 Feb 2008 21:49:39 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JQw4Z-0006ZV-AA for emacs-pretest-bug@gnu.org; Sun, 17 Feb 2008 21:49:39 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JQw4W-0003xM-7E for emacs-pretest-bug@gnu.org; Sun, 17 Feb 2008 21:49:39 -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 1JQw4S-0003uu-8Z; Sun, 17 Feb 2008 21:49:32 -0500 Original-X-Trace: 7815582/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: Ao8CAK6AuEdTQxds/2dsb2JhbAAIjDOdeQ X-IronPort-AV: E=McAfee;i="5200,2160,5231"; a="7815582" X-IronPort-AV: E=Sophos;i="4.25,369,1199664000"; d="scan'208";a="7815582" 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; 18 Feb 2008 02:49:30 +0000 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: <87k5l5yfaj.fsf@catnip.gol.com> X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:89436 gmane.emacs.pretest.bugs:21179 Archived-At: Miles Bader wrote: > Perhaps the "best" thing would be to temporarily do a > (prefer-coding-system 'utf-8) when reading xml files without an encoding > header, instead of _forcing_ the coding system to be utf-8. > I made this change in sgml-xml-auto-coding-function, and also introduced a new function to do the same for .xml files without an xml declaration, which were hardcoded to utf-8 by file-coding-system-alist. I also disabled the write-hook in nxml-mode that was forcing utf-8 on write, since its most important functionality of honoring changes to the encoding attribute in the xml declaration is already duplicated elsewhere in Emacs (a write equivalent of sgml-xml-auto-coding-function?).