GNU bug report logs - #55592
29.0.50; save-place-mode conflict with desktop.el when file encoding is utf-16

Previous Next

Package: emacs;

Reported by: Eason Huang <aqua0210 <at> foxmail.com>

Date: Mon, 23 May 2022 12:45:01 UTC

Severity: normal

Found in version 29.0.50

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

Bug is archived. No further changes may be made.

Full log


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

From: Eason Huang <aqua0210 <at> foxmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 55592 <at> debbugs.gnu.org
Subject: Re: bug#55592: 29.0.50; save-place-mode conflict with desktop.el
 when file encoding is utf-16
Date: Mon, 23 May 2022 23:26:14 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Eason Huang <aqua0210 <at> foxmail.com>
>> Date: Mon, 23 May 2022 20:28:56 +0800
>>
>> 1. create an file in ~/.emacs.d/init.el
>> 2. put below code in in the init.el file
>> ```
>> (desktop-save-mode 1)
>> (save-place-mode 1)
>> ```
>> 3. start Emacs and open a file with UTF-16 encoding, you can use the
>> sample file in the attachment
>>
>> 4. close Emacs with C-x C-c, will save a .emacs.desktop file and a
>> places file in the .emacs.d directory.
>>
>> 5. restart Emacs, now you can see the issue.
>
> Thanks for the clear recipe, this should now be fixed on the master
> branch.

Hi Eli,

Thanks for your quick fix.

The issue have been gone. It works well with latest commit.

I tested on Windows and macOS.

-- 
Eason Huang




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

Previous Next


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