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 20:11:49 -0400 Message-ID: References: <555E44EB.6070604@gmx.net> <83egm95boc.fsf@gnu.org> <555F2D3C.6090608@gmx.net> <8660oxdyxy.fsf@realize.ch> <457eu2h1sk.fsf@fencepost.gnu.org> <20180808094748.GA26509@zira.vinc17.org> <83a7ptmfgs.fsf@gnu.org> <20180811101341.GA4800@zira.vinc17.org> <83zhxtkwqq.fsf@gnu.org> <20180811154101.GB4800@zira.vinc17.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1534032608 9968 195.159.176.226 (12 Aug 2018 00:10:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Aug 2018 00:10:08 +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: Vincent Lefevre Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 12 02:10:03 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 1fodxK-0002TJ-Us for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Aug 2018 02:10:03 +0200 Original-Received: from localhost ([::1]:33600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fodzR-0005yM-8W for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Aug 2018 20:12:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fodzH-0005yH-Ro for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2018 20:12:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fodzG-0003TX-Sn for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2018 20:12:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43472) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fodzG-0003TP-Ow for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2018 20:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fodzG-000206-Hw for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2018 20:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Aug 2018 00:12:02 +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.15340327157675 (code B ref 20623); Sun, 12 Aug 2018 00:12:02 +0000 Original-Received: (at 20623) by debbugs.gnu.org; 12 Aug 2018 00:11:55 +0000 Original-Received: from localhost ([127.0.0.1]:48490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fodz9-0001zj-9G for submit@debbugs.gnu.org; Sat, 11 Aug 2018 20:11:55 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:46228) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fodz7-0001zZ-G7 for 20623@debbugs.gnu.org; Sat, 11 Aug 2018 20:11:54 -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 w7C0BnM5013442; Sat, 11 Aug 2018 20:11:50 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 11E70AE1F5; Sat, 11 Aug 2018 20:11:49 -0400 (EDT) In-Reply-To: <20180811154101.GB4800@zira.vinc17.org> (Vincent Lefevre's message of "Sat, 11 Aug 2018 17:41:01 +0200") X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.1 X-NAI-Spam-Rules: 3 Rules triggered TRK_NCM1=0.1, EDT_SA_DN_PASS=0, RV6349=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6349> : inlines <6809> : streams <1795235> : uri <2687570> 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:149454 Archived-At: >> > > In this case, I cannot but express my extreme surprise to see such a >> > > minor issue described as "grave". The alleged data loss is minor, if >> > > it exists at all (the BOM is not data important for the user, >> > You're completely wrong. The presence of BOM or not is very important >> > for some applications, such as Firefox (not to determine the charset, >> > but the MIME type of local files). >> Please provide the details, including the use case, if possible. I'm >> still in the dark regarding the importance of the BOM in UTF-8 encoded >> HTML stuff. > https://bugzilla.mozilla.org/show_bug.cgi?id=1422889 I don't see any data loss there. Stefan PS: We can all cook up contrived scenarios where this bug leads to a serious loss of data. But in that case a problem in C-n which makes it move to the wrong column would also qualify as "grave" because I can just as well construct a contrived scenarios where such a bug leads to a serious loss of data.