GNU bug report logs - #31149
27.0.50; (gui-get-selection nil 'text/html) returns mis-decoded text

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Date: Fri, 13 Apr 2018 20:56:02 UTC

Severity: normal

Found in version 27.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 31149 <at> debbugs.gnu.org, monnier <at> IRO.UMontreal.CA
Subject: Re: bug#31149: 27.0.50; (gui-get-selection nil 'text/html) returns
 mis-decoded text
Date: Sun, 29 Sep 2019 11:37:28 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> I think it would make sense for us to do the same here.  It should be
>> easy enough for us to detect that the string is utf-16, I think?
>
> I think you want to use auto-coding-regexp-alist-lookup.

Ah, thanks.  So should I go ahead and make this change?  It looks pretty
trivial, but I guess there could be interop problems with code that
assumes the current odd behaviour.

>> The data has a BOM
>
> Does it?  It doesn't have to, at least not in principle.

It doesn't have to, but it always does on the systems I've tested on.
But I guess it doesn't matter, `auto-coding-regexp-alist-lookup' will
figure it out in any case...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 193 days ago.

Previous Next


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