From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; [nxml] BOM and utf-8 Date: Fri, 23 May 2008 11:05:11 +0200 Message-ID: <20080523090511.GA12796@tomas> References: <87od75kt78.fsf@pdrechsler.de> <87d4nk8y3q.fsf@everybody.org> <87r6bvs3jj.fsf@pdrechsler.de> <87mymjs2qw.fsf@pdrechsler.de> <20080522041745.GA29437@tomas> <87mymixmx5.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1211534833 3432 80.91.229.12 (23 May 2008 09:27:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 May 2008 09:27:13 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Patrick Drechsler , tomas@tuxteam.de, emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 23 11:27:50 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 1JzTYv-0002nG-MQ for ged-emacs-devel@m.gmane.org; Fri, 23 May 2008 11:27:45 +0200 Original-Received: from localhost ([127.0.0.1]:48946 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzTYA-0000GH-Rz for ged-emacs-devel@m.gmane.org; Fri, 23 May 2008 05:26:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JzTCy-00031J-Lx for emacs-devel@gnu.org; Fri, 23 May 2008 05:05:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JzTCv-0002zp-CM for emacs-devel@gnu.org; Fri, 23 May 2008 05:05:02 -0400 Original-Received: from [199.232.76.173] (port=42403 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzTCu-0002zX-EA for emacs-devel@gnu.org; Fri, 23 May 2008 05:05:01 -0400 Original-Received: from alextrapp1.equinoxe.de ([217.22.192.104]:44073 helo=www.elogos.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JzTCq-0003Ke-DE; Fri, 23 May 2008 05:04:56 -0400 Original-Received: by www.elogos.de (Postfix, from userid 1000) id E331190171; Fri, 23 May 2008 11:05:11 +0200 (CEST) Content-Disposition: inline In-Reply-To: <87mymixmx5.fsf@uwakimon.sk.tsukuba.ac.jp> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:97568 gmane.emacs.pretest.bugs:22429 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, May 23, 2008 at 02:34:46AM +0900, Stephen J. Turnbull wrote: > tomas@tuxteam.de writes: >=20 > > > > ,----[ http://www.w3.org/TR/2006/REC-xml-20060816/#charencoding = ] > > > > | Entities encoded in UTF-16 MUST and entities encoded in UTF-8 = MAY > > > > | begin with the Byte Order Mark [...] > > > > | [...] XML processors MUST be able to use this characte= r to > > > > | differentiate between UTF-8 and UTF-16 encoded documents. > > > > `---- > >=20 > > ...and how are the XML processors supposed to achieve that? Is there= a > > second variant of BOM, indicating UTF-8? >=20 > Well, note that the BOM is three octets in UTF-8 but only two in > UTF-16. Dead giveaway, there. Duh. Thanks. That's what I was missing. [...] > > Am I completely whacko, or are they? >=20 > Neither. You live in a relatively sane world, they live in a world > which contains the sovereign nations of Japan and Microsoft. Thanks for your kind words :-) As for whether Emacs or nxml has the burden of skipping the BOM -- that would correspond to whether nxml "within" Emacs is "seeing" a piece of XML or a whole XML document, right? Regards - -- tom=C3=A1s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFINojHBcgs9XrR2kYRAtieAJsEoakhvgRrjisQ9XhIjAap5mISBACaAjrk 7IuDZQjZvvdFoadb90lSygE=3D =3D022X -----END PGP SIGNATURE-----