From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" 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 16:17:13 +0900 Message-ID: <87r6fd5q12.fsf@uwakimon.sk.tsukuba.ac.jp> References: <87odaifv16.fsf@mundaneum.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203145843 9568 80.91.229.12 (16 Feb 2008 07:10:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Feb 2008 07:10:43 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Edward O'Connor , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 16 08:11:07 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 1JQHCS-0008Jx-FK for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2008 08:11:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQHBy-0002GO-74 for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2008 02:10:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JQHBu-0002GC-C8 for emacs-devel@gnu.org; Sat, 16 Feb 2008 02:10:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQHBs-0002Fm-P4 for emacs-devel@gnu.org; Sat, 16 Feb 2008 02:10:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQHBs-0002Fj-L1 for emacs-devel@gnu.org; Sat, 16 Feb 2008 02:10:28 -0500 Original-Received: from mtps01.sk.tsukuba.ac.jp ([130.158.97.223]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JQHBm-0000Ty-EL; Sat, 16 Feb 2008 02:10:22 -0500 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps01.sk.tsukuba.ac.jp (Postfix) with ESMTP id EB6511535B3; Sat, 16 Feb 2008 16:10:17 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 0E9BE1A29E5; Sat, 16 Feb 2008 16:17:14 +0900 (JST) In-Reply-To: X-Mailer: VM 7.17 under 21.5 (beta28) "fuki" (+CVS-20071205) XEmacs Lucid 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:89225 gmane.emacs.pretest.bugs:21134 Archived-At: Stefan Monnier writes: > The OP's file is *not* an XML document. The XML document is generated > from various parts, including this file. This is very similar to the > LaTeX \usepackage[XXX]{inputenc} which is only placd in the root file, > but not in the files included from that one. 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.