From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Patrick Drechsler Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; [nxml] BOM and utf-8 Date: Mon, 19 May 2008 16:32:10 +0200 Organization: none Message-ID: <877idqz7o5.fsf@pdrechsler.de> References: <87od75kt78.fsf@pdrechsler.de> <87mymofip6.fsf@uwakimon.sk.tsukuba.ac.jp> <878wy8ny36.fsf@catnip.gol.com> <482FEF32.2080300@gnu.org> <87prrj98rh.fsf@pdrechsler.de> <87ej7zf0oa.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211207589 18576 80.91.229.12 (19 May 2008 14:33:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 May 2008 14:33:09 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 19 16:33:44 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 1Jy6QO-0007Pl-5g for ged-emacs-devel@m.gmane.org; Mon, 19 May 2008 16:33:16 +0200 Original-Received: from localhost ([127.0.0.1]:46306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jy6Pd-0005qS-SX for ged-emacs-devel@m.gmane.org; Mon, 19 May 2008 10:32:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jy6PX-0005nk-9g for emacs-devel@gnu.org; Mon, 19 May 2008 10:32:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jy6PU-0005nF-Dt for emacs-devel@gnu.org; Mon, 19 May 2008 10:32:22 -0400 Original-Received: from [199.232.76.173] (port=42972 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jy6PU-0005n6-6e for emacs-devel@gnu.org; Mon, 19 May 2008 10:32:20 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:39207 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jy6PT-0006rE-Rz for emacs-devel@gnu.org; Mon, 19 May 2008 10:32:20 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Jy6PO-0001jx-RG for emacs-devel@gnu.org; Mon, 19 May 2008 14:32:15 +0000 Original-Received: from dslb-088-065-122-052.pools.arcor-ip.net ([88.65.122.52]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 May 2008 14:32:14 +0000 Original-Received: from patrick by dslb-088-065-122-052.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 May 2008 14:32:14 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-088-065-122-052.pools.arcor-ip.net Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEUAAACtra19fX3y8vKA gID///9AQEBawxxrAAABeUlEQVR4nHXSwXKDIBAA0G3a8Vw05JxY9E4MObeK3h1Cz2qt//8J3UWj ppIdBxmfu4sC2CcB070+PQHDuAcyhQPzwLVFuSlfqQK7eOFirfQ2ly7JC8a3Kip1sx6QLOaRB0wo IUg8gFUa2D2BIFVb+OYGhC23cB4aUDbaQt4AgifjCACt9HwgQfrjWZWDwNPjEwHbtBu44kPC5D9Y FknMgFf8aZFawDDGIuoTkAYndYczzd5hjqAYwXzQ/QCraB2401HvHyQhKMb2tbw0M7whuBNoIs4M W/Xh056fQzwLPF/g14FkrcLN4nKp9WLByIMImSwyycLjDDsOF93pVFdC6yofHkEjxDhWumtWsMdH edc7SOf2/QiYQiByUU0gSldKD4LyBLUbK+kCaoI+diNlxgOGmIFWhVDpe5RgqEiPRR6Buwx8PxXE G3CGzeMVmAnctUB5h3Hsthljp34Ne/wjbu4+cIovBVbqfH4vFdOkoI2SzEWUZdMMQ9k/5csXnnRd prMAAAAASUVORK5CYII= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:xzZb5rCyWwLSjK+FrAFDECn3tTQ= 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:97393 gmane.emacs.pretest.bugs:22388 Archived-At: "Stephen J. Turnbull" writes: > Patrick Drechsler writes: > > > I second the opinion that it would be nice to have the option to > > hide (or remove) the BOM while editing the file in Emacs and > > reinserting it (if it was removed) when done editing. > > I believe that there is a utf-8-signature or similarly named coding > system which does this. (It's called utf-8-bom in XEmacs but IIRC > Emacs uses the more accurate name, since UTF-8 is of course always > bigendian.) Thanks for the feedback Stephen. I am not able to find this coding system by searching through the list of possible coding systems (describe-coding-system -> TAB). The only appearances of the string "sig" are all utf-16 related (the string "bom" did not return any results either): ,---- | 4 matches for "sig" in buffer: *Completions* | 386:utf-16be-with-signature utf-16be-with-signature-dos | 387:utf-16be-with-signature-mac utf-16be-with-signature-unix | 390:utf-16le-with-signature utf-16le-with-signature-dos | 391:utf-16le-with-signature-mac utf-16le-with-signature-unix `---- > You can use the auto-coding-alist (or something like that) to ensure > that files with certain names always get the strip-BOM-on-input, > prepend-BOM-on-output behavior. Cheers, Patrick