From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#20623: XML and HTML files with encoding/charset="utf-8" declaration loose BOM; Coding system is reset from utf-8-with-signature to utf-8 on save Date: Sat, 11 Aug 2018 08:45:15 -0400 Message-ID: References: <555E2912.7060509@gmx.net> <83iobl67ao.fsf@gnu.org> <555E44EB.6070604@gmx.net> <83egm95boc.fsf@gnu.org> <555F2D3C.6090608@gmx.net> <8660oxdyxy.fsf@realize.ch> <457eu2h1sk.fsf@fencepost.gnu.org> <837eu2xmor.fsf@gnu.org> <838teatmtv.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1533991446 27099 195.159.176.226 (11 Aug 2018 12:44:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 11 Aug 2018 12:44:06 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: a.s@realize.ch, 20623@debbugs.gnu.org, sledergerber@gmx.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 11 14:44:01 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1foTFR-0006vX-Pl for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Aug 2018 14:44:01 +0200 Original-Received: from localhost ([::1]:60134 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foTHY-0002br-0O for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Aug 2018 08:46:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foTHS-0002bl-4q for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2018 08:46:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1foTHO-00030Z-7a for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2018 08:46:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42859) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1foTHO-00030V-3Y for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2018 08:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1foTHN-0006ei-U5 for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2018 08:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Aug 2018 12:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20623 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20623-submit@debbugs.gnu.org id=B20623.153399152325541 (code B ref 20623); Sat, 11 Aug 2018 12:46:01 +0000 Original-Received: (at 20623) by debbugs.gnu.org; 11 Aug 2018 12:45:23 +0000 Original-Received: from localhost ([127.0.0.1]:47877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1foTGl-0006dt-AK for submit@debbugs.gnu.org; Sat, 11 Aug 2018 08:45:23 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:37689) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1foTGj-0006dl-GZ for 20623@debbugs.gnu.org; Sat, 11 Aug 2018 08:45:22 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w7BCjG93024937; Sat, 11 Aug 2018 08:45:17 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id E7029AE1F5; Sat, 11 Aug 2018 08:45:15 -0400 (EDT) In-Reply-To: <838teatmtv.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 10 Dec 2017 21:17:00 +0200") X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.2 X-NAI-Spam-Rules: 3 Rules triggered LNG_SB_1=0.2, EDT_SA_DN_PASS=0, RV6349=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6349> : inlines <6809> : streams <1795190> : uri <2687364> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:149436 Archived-At: >> > Isn't it better to fix this in sgml-xml-auto-coding-function? That's >> > where the root cause is, AFAIU. >> I'd expect the same problem would affect all other uses. > Not sure what you meant by "all other uses". Could you please > elaborate? Your commit ec6f588940e51013435408a456c10d33ddf98fb2 answers that question: at least sgml-html-meta-auto-coding-function is one of those "other uses". > > And I don't understand the comment about latin-1-mac: I don't think we > > have such problems in Emacs. The -with-signature variety is > > different, because it is not about EOL format. > You might be right, but I don't know where/how this is handled. I still don't know where the EOL part is handled. Stefan