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; [nxml] BOM and utf-8 Date: Mon, 19 May 2008 12:11:17 +0900 Message-ID: <87ej7zf0oa.fsf@uwakimon.sk.tsukuba.ac.jp> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211166004 24746 80.91.229.12 (19 May 2008 03:00:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 May 2008 03:00:04 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, emacs-devel@gnu.org To: Patrick Drechsler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 19 05:00:41 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 1Jxvc7-0004vi-CT for ged-emacs-devel@m.gmane.org; Mon, 19 May 2008 05:00:39 +0200 Original-Received: from localhost ([127.0.0.1]:44469 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JxvbN-0004Cg-HD for ged-emacs-devel@m.gmane.org; Sun, 18 May 2008 22:59:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JxvbJ-0004AH-An for emacs-devel@gnu.org; Sun, 18 May 2008 22:59:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JxvbH-00048c-RH for emacs-devel@gnu.org; Sun, 18 May 2008 22:59:48 -0400 Original-Received: from [199.232.76.173] (port=38208 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JxvbH-00048Z-Oy for emacs-devel@gnu.org; Sun, 18 May 2008 22:59:47 -0400 Original-Received: from mtps02.sk.tsukuba.ac.jp ([130.158.97.224]:58751) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JxvbD-0004I7-1m; Sun, 18 May 2008 22:59:43 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps02.sk.tsukuba.ac.jp (Postfix) with ESMTP id C3ADD8003; Mon, 19 May 2008 11:59:41 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id D02BC1A25C3; Mon, 19 May 2008 12:11:17 +0900 (JST) In-Reply-To: <87prrj98rh.fsf@pdrechsler.de> X-Mailer: VM ?bug? under XEmacs 21.5.21 (x86_64-unknown-linux) 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:97373 gmane.emacs.pretest.bugs:22380 Archived-At: 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.) 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.