GNU bug report logs - #35766
emacs saves utf-16 le xml files as utf-16 be

Previous Next

Package: emacs;

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


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

From: J S <jszabo_98 <at> hotmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "35766 <at> debbugs.gnu.org" <35766 <at> debbugs.gnu.org>,
 "npostavs <at> gmail.com" <npostavs <at> gmail.com>
Subject: Re: bug#35766: emacs saves utf-16 le xml files as utf-16 be
Date: Sun, 19 May 2019 14:12:14 +0000
[Message part 1 (text/plain, inline)]
Sounds good.
________________________________
From: Eli Zaretskii <eliz <at> gnu.org>
Sent: Sunday, May 19, 2019 4:58 AM
To: J S
Cc: npostavs <at> gmail.com; 35766 <at> debbugs.gnu.org
Subject: Re: bug#35766: emacs saves utf-16 le xml files as utf-16 be

On May 18, 2019 11:57:51 PM GMT+03:00, J S <jszabo_98 <at> hotmail.com> wrote:
> RFC 2781 under "4.3 Interpreting text labelled as UTF-16" says is that
> if a document is labelled "UTF-16", the application should check the
> byte order mark to see if it is little endian or big endian   Only if
> there's no byte order mark, should the document be interpreted as big
> endian.
>


If you are talking about visiting an existing file, then the change I installed does just that.  I was talking about saving a file, in which case there's no BOM, since it isn't present in the buffer
[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.