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: Sat, 16 Feb 2008 09:58:36 +0000 Message-ID: <47B6B3CC.1080101@gnu.org> References: <87odaifv16.fsf@mundaneum.com> <87r6fd5q12.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 1203155950 30560 80.91.229.12 (16 Feb 2008 09:59:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Feb 2008 09:59:10 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, emacs-devel@gnu.org, Stefan Monnier , Edward O'Connor To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 16 10:59:34 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 1JQJpV-0007Hf-0P for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2008 10:59:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQJp0-0005RI-UV for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2008 04:59:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JQJol-0005Kj-4J for emacs-devel@gnu.org; Sat, 16 Feb 2008 04:58:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQJok-0005K7-5q for emacs-devel@gnu.org; Sat, 16 Feb 2008 04:58:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQJoj-0005K2-Me for emacs-devel@gnu.org; Sat, 16 Feb 2008 04:58:45 -0500 Original-Received: from mk-outboundfilter-3.mail.uk.tiscali.com ([212.74.114.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JQJof-0006SA-SR; Sat, 16 Feb 2008 04:58:42 -0500 Original-X-Trace: 41979549/mk-outboundfilter-1.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: Ao8CAIFCtkdTQxds/2dsb2JhbAAIjDKgcA 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; 16 Feb 2008 09:58:40 +0000 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: <87r6fd5q12.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:89232 gmane.emacs.pretest.bugs:21135 Archived-At: Stephen J. Turnbull wrote: > Stefan Monnier writes: > > Man, don't go there. XML documents *and fragments* should be presumed > Unicode until the user explictly says otherwise. Make it easy for the > user to do that, make it as easy as you like (eg, with a variable > containing the regexp ".*\.xml$"), but don't try to guess until the > user asks you to, please. > I think you're misunderstanding. Currently we use utf-8 in absense of a coding tag, even if it causes a decoding error. And when the user explicitly sets the file-coding-system to latin-1, we ignore it and save as utf-8. That is the behaviour we want to change, not the behaviour of defaulting to UTF-8.