From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Vincent Lefevre 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: Sun, 12 Aug 2018 03:34:25 +0200 Message-ID: <20180812013425.GE4800@zira.vinc17.org> References: <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> <83pnyolvgq.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1534037594 7794 195.159.176.226 (12 Aug 2018 01:33:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Aug 2018 01:33:14 +0000 (UTC) User-Agent: Mutt/1.10.1+58 (10c1ac4b) vl-108074 (2018-07-29) Cc: a.s@realize.ch, monnier@iro.umontreal.ca, 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 Sun Aug 12 03:33:09 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 1fofFf-0001rA-IV for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Aug 2018 03:33:03 +0200 Original-Received: from localhost ([::1]:33740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fofHm-0004Nz-5P for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Aug 2018 21:35:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fofHg-0004Nu-0K for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2018 21:35:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fofHb-0004DK-2S for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2018 21:35:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43515) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fofHa-0004DB-UC for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2018 21:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fofHa-0006D1-IF for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2018 21:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vincent Lefevre Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Aug 2018 01:35: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.153403766823818 (code B ref 20623); Sun, 12 Aug 2018 01:35:02 +0000 Original-Received: (at 20623) by debbugs.gnu.org; 12 Aug 2018 01:34:28 +0000 Original-Received: from localhost ([127.0.0.1]:48533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fofH1-0006C5-Rz for submit@debbugs.gnu.org; Sat, 11 Aug 2018 21:34:28 -0400 Original-Received: from joooj.vinc17.net ([155.133.131.76]:44230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fofH0-0006By-Ny for 20623@debbugs.gnu.org; Sat, 11 Aug 2018 21:34:27 -0400 Original-Received: from smtp-zira.vinc17.net (unknown [37.168.239.54]) by joooj.vinc17.net (Postfix) with ESMTPSA id DFC452A7; Sun, 12 Aug 2018 03:34:25 +0200 (CEST) Original-Received: by zira.vinc17.org (Postfix, from userid 1000) id 76959C20135; Sun, 12 Aug 2018 03:34:25 +0200 (CEST) Content-Disposition: inline In-Reply-To: <83pnyolvgq.fsf@gnu.org> X-Mailer-Info: https://www.vinc17.net/mutt/ 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:149460 Archived-At: On 2018-08-11 19:27:33 +0300, Eli Zaretskii wrote: > Maybe I'm missing something, but none of these issues describes the > situation in this bug report, namely: an HTML file with an explicit > charset= tag, with or without a BOM. In fact, the first of these > issues happens only in files that _do_ have a BOM, so you could say > that Emacs did you a favor by removing it ;-) In theory yes, but in practice, one does not want that when doing file-loading tests. Otherwise the tests become meaningless. This is just list a spellchecker that automatically corrects spelling mistakes without the user knowledge (even when it is right), as if the goal is to write something about a spelling mistake, the text becomes meaningless. Or when some characters are changed automatically to improve typography (as this can be seen by some blog software when posting, with no previewing), as this can make the text meaningless, e.g. when it is code. > Anyway, the Emacs issue is now fixed. OK, thanks. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)