From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup 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 18:31:43 +0100 Message-ID: <858x1k4xkw.fsf@lola.goethe.zz> References: <87odaifv16.fsf@mundaneum.com> <87r6fd5q12.fsf@uwakimon.sk.tsukuba.ac.jp> <47B6B3CC.1080101@gnu.org> <87wsp5xhz4.fsf@uwakimon.sk.tsukuba.ac.jp> <47B71777.6030404@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203183136 8905 80.91.229.12 (16 Feb 2008 17:32:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Feb 2008 17:32:16 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, "Stephen J. Turnbull" , Edward O'Connor , Stefan Monnier , emacs-devel@gnu.org To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 16 18:32:38 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 1JQQts-0001FD-CE for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2008 18:32:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQQtO-0001pH-4l for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2008 12:32:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JQQtJ-0001os-22 for emacs-devel@gnu.org; Sat, 16 Feb 2008 12:31:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQQtI-0001oR-Eo for emacs-devel@gnu.org; Sat, 16 Feb 2008 12:31:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQQtI-0001oF-8G for emacs-devel@gnu.org; Sat, 16 Feb 2008 12:31:56 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JQQtH-00006O-Nh for emacs-devel@gnu.org; Sat, 16 Feb 2008 12:31:55 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JQQtH-0003Ab-DN for emacs-pretest-bug@gnu.org; Sat, 16 Feb 2008 12:31:55 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JQQtE-00005c-EK for emacs-pretest-bug@gnu.org; Sat, 16 Feb 2008 12:31:55 -0500 Original-Received: from mail-in-05.arcor-online.net ([151.189.21.45]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JQQtD-00005Q-Sj; Sat, 16 Feb 2008 12:31:52 -0500 Original-Received: from mail-in-10-z2.arcor-online.net (mail-in-10-z2.arcor-online.net [151.189.8.27]) by mail-in-05.arcor-online.net (Postfix) with ESMTP id 2AFCC18B409; Sat, 16 Feb 2008 18:31:50 +0100 (CET) Original-Received: from mail-in-04.arcor-online.net (mail-in-04.arcor-online.net [151.189.21.44]) by mail-in-10-z2.arcor-online.net (Postfix) with ESMTP id 19DCA23D296; Sat, 16 Feb 2008 18:31:50 +0100 (CET) Original-Received: from lola.goethe.zz (dslb-084-061-099-011.pools.arcor-ip.net [84.61.99.11]) by mail-in-04.arcor-online.net (Postfix) with ESMTP id AC8041BF3D6; Sat, 16 Feb 2008 18:31:49 +0100 (CET) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 4CF591C4CE32; Sat, 16 Feb 2008 18:31:43 +0100 (CET) In-Reply-To: <47B71777.6030404@gnu.org> (Jason Rumney's message of "Sat, 16 Feb 2008 17:03:51 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Virus-Scanned: ClamAV 0.92.1/5836/Sat Feb 16 18:00:53 2008 on mail-in-04.arcor-online.net X-Virus-Status: Clean X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:89260 gmane.emacs.pretest.bugs:21142 Archived-At: Jason Rumney writes: > This is nothing to do with psgml (which is not part of Emacs), or > nxml. AFAIK psgml does nothing about encoding, as sgml files are not > necessarily in any particular encoding. Nxml had some code which as > far as I understand is similar to what I was proposing as a solution > here. I removed that code shortly after it was merged into Emacs since > Emacs already had code which seemed to do the same thing for XML > files, regardless of mode. It is only now that I found out that the > code in Emacs is overly simplistic, forcing UTF-8 even against users' > wishes. Unless the user explicitly requests some encoding, the default should be (irrespective of language environment) utf-8. If the user explicitly requests some encoding, that's the decoding for saving. In either case, if the resulting encoding does not agree with a prospective XML coding cookie (the absence of which indicates utf-8), Emacs should offer to add or change the coding cookie. Something like that. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum