bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20623: XML and HTML files with encoding/charset="utf-8" declaration


From: Eli Zaretskii
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: Mon, 04 Dec 2017 22:28:20 +0200

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Alain Schneble <a.s@realize.ch>,  Simon Ledergerber 
> <sledergerber@gmx.net>,  20623@debbugs.gnu.org,  Eli Zaretskii <eliz@gnu.org>
> Date: Mon, 04 Dec 2017 12:38:57 -0500
> 
> This said, we should indeed fix this bug.

Agreed.

> Not sure how to Do It Right but least this specific problem should be
> fixable with a patch along the lines of the one below (guaranteed 100%
> untested).

Isn't it better to fix this in sgml-xml-auto-coding-function?  That's
where the root cause is, AFAIU.

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.

Thanks.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]