GNU bug report logs - #8282
sgml-xml-auto-coding-function() should respect the *-with-signature-* coding

Previous Next

Package: emacs;

Reported by: LIN Sumang <linsumang <at> gmail.com>

Date: Fri, 18 Mar 2011 13:34:01 UTC

Severity: normal

Merged with 8283, 35766

Fixed in version 27.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: LIN Sumang <linsumang <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: sgml-xml-auto-coding-function() should respect the *-with-signature-*
	coding
Date: Fri, 18 Mar 2011 13:56:39 +0800
[Message part 1 (text/plain, inline)]
Hi,

I am using Emacs 23.2.1. I think sgml-xml-auto-coding-function() should
respect the *-with-signature-* coding.

Consider the scenario below:
1. xml file with the signature \376\377 at beginning of the file and the
first line is
<?xml version="1.0" encoding="utf-16be"?>
2. edit this file and save it. sgml-xml-auto-coding-function will use the
utf-16be to save the file.
3. open the file again, get messed.

In this case sgml-xml-auto-coding-function() shouldn't change the coding and
if it really need to change the coding, it should append the
*-with-signature-* to the selected coding.

sgml-html-meta-auto-coding-function() should have same problem.
[Message part 2 (text/html, inline)]

This bug report was last modified 6 years and 61 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.