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

From: Eason Huang <[email-masked]>
Date: Mon, 23 May 2022 23:26:14 +0800

Eli Zaretskii <[email-masked]> writes:

>> From: Eason Huang <[email-masked]>
>> 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