GNU bug report logs -
#35766
emacs saves utf-16 le xml files as utf-16 be
Previous Next
Reported by: J S <jszabo_98 <at> hotmail.com>
Date: Thu, 16 May 2019 17:58:01 UTC
Severity: normal
Merged with 8282,
8283
Fixed in version 27.1
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
I should say that I'm using emacs for windows. And it's preferring saving in big endian to little endian when this is the tag:
<?xml version="1.0" encoding="UTF-16"?>
________________________________
From: J S <jszabo_98 <at> hotmail.com>
Sent: Thursday, May 16, 2019 7:21 PM
To: Eli Zaretskii
Cc: 35766 <at> debbugs.gnu.org
Subject: Re: bug#35766: emacs saves utf-16 le xml files as utf-16 be
Try saving this xml file and opening it again:
<?xml version="1.0" encoding="UTF-16LE"?>
________________________________
From: J S <jszabo_98 <at> hotmail.com>
Sent: Thursday, May 16, 2019 7:15 PM
To: Eli Zaretskii
Subject: Re: bug#35766: emacs saves utf-16 le xml files as utf-16 be
Try saving this xml file and opening it again:
<?xml version="1.0" encoding="UTF-16LE"?>
________________________________
From: Eli Zaretskii <eliz <at> gnu.org>
Sent: Thursday, May 16, 2019 6:22 PM
To: J S
Cc: 35766 <at> debbugs.gnu.org
Subject: Re: bug#35766: emacs saves utf-16 le xml files as utf-16 be
> From: J S <jszabo_98 <at> hotmail.com>
> Date: Thu, 16 May 2019 17:11:21 +0000
>
> Xml files with this tag are saved as utf-16 be by emacs, even if the file was originally utf-16 le. Using
> "UTF-16LE" instead will break the encoding and remove the BOM.
>
> <?xml version="1.0" encoding="UTF-16"?>
Did you try using utf-16le-with-signature?
Or maybe I don't understand the scenario: would you please describe a
full reproduction recipe, starting from "emacs -Q"?
Thanks.
[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.