From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eason Huang Newsgroups: gmane.emacs.bugs Subject: 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 Message-ID: References: <83y1ys5q4e.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2781"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (windows-nt) Cc: 55592@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 23 17:27:20 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nt9xo-0000cy-FW for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 May 2022 17:27:20 +0200 Original-Received: from localhost ([::1]:46978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nt9xn-0000VD-Bn for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 May 2022 11:27:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nt9xW-0000OS-F3 for bug-gnu-emacs@gnu.org; Mon, 23 May 2022 11:27:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56132) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nt9xW-0003PU-6g for bug-gnu-emacs@gnu.org; Mon, 23 May 2022 11:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nt9xW-0004tr-1W for bug-gnu-emacs@gnu.org; Mon, 23 May 2022 11:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eason Huang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 May 2022 15:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55592 X-GNU-PR-Package: emacs Original-Received: via spool by 55592-submit@debbugs.gnu.org id=B55592.165331958818752 (code B ref 55592); Mon, 23 May 2022 15:27:01 +0000 Original-Received: (at 55592) by debbugs.gnu.org; 23 May 2022 15:26:28 +0000 Original-Received: from localhost ([127.0.0.1]:50019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nt9wx-0004sM-S0 for submit@debbugs.gnu.org; Mon, 23 May 2022 11:26:28 -0400 Original-Received: from out162-62-57-210.mail.qq.com ([162.62.57.210]:49723) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nt9wv-0004s6-57 for 55592@debbugs.gnu.org; Mon, 23 May 2022 11:26:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1653319575; bh=mbkR+Xwx4fsaRtjcohD9MsVv3EFdTL0pPTZMjwYsRVI=; h=From:To:Cc:Subject:References:Date:In-Reply-To; b=zrfOvQ5wqIHkYFbR/XnRd9mZXz1aA2MaOOqYllkF6LAqhbTiH3v5Wezx9m4C8ek2s kB/t7rHiR1Tzjp3aGWVXWbstx7D5HEIiuZKYzFE5Bo5/aCcS+BV55t3ERa6tt0aRaS OvIprYVedD2kFrOA0kahHC6U/u2Cs5sW67YotmHg= Original-Received: from DESKTOP-30D687D ([180.162.211.86]) by newxmesmtplogicsvrsza7.qq.com (NewEsmtp) with SMTP id 68E026B4; Mon, 23 May 2022 23:26:14 +0800 X-QQ-mid: xmsmtpt1653319574tgb7xm1fq X-QQ-XMAILINFO: M0yQCYO1Pk4BpW2ag60BoFRdhcyoagLh04A/CnkE3gdl9uzg9V6TAYtjJSC5Cl asrBb6QCBJfY8AovQiBN+0XJfO44aPStiPNcrUBBc5QaTJhnS7ax7QEAKtv5dODSGdGlrJ5KtbC9 jrw3gxhXicFvtLC8MGBGv/6y33XrCC96SjuyFMPRe1ImNcMDBZQf7Y/XJPq9xvGBLgpedfVylqYq 4vURhv6MZyc6NVWgki9e3MhRoEAszbK/R+oATe3ZxbBWlKczg46VFAzYMNZq8XUkNa5BZylQ4nxR y2Ra40S7tRHHJqJd8WHQD9cPaV/RULJY7nWXT+OTkitFcIk6O3dkt1PB/Oz1KrlKPkxrldGIBpkT khTttK0HXSTvsI2DK1RhZlAAKTEVe6dNX/9WZKOuvM9E7YF7Ctz0sFP116Ek9N4XPGNxyfEMz55s bioL3VvzllpxZQ/9Fag2XAHqgwpWc2GdbIcrW5sqQz/Akdyb0NAU6jR5RWwnuLZcweoPp6LQHqVA aF7HbuPTzHtHpDXj+bw9o/oiXJGTwkd/NJguqBNh64t/nDGaaEPea+bHNmpNT/QUi3PNQCo3HUp/ dP2sXHr9/Xs8kYZpEXKx8o6R2jPZMT4kT8fY1JoZnZcdUk1gBhi0YsEmg0tUQv2SnWLvRjA01p3f 99FSbJ3wkA8pza4xqgoihDAseioJ4X/ZtMbTMGV54FkrsBrIEHHiNPDzby1EHMJU4NLK9hLpB+m5 BU2mQkkx0IhwLBi8WkwL7mlhsfAKpjcNxuPQOgS73xQj97yrBHBanrQqMDSZ3PxBnfU7nxkNTyTp pxT3BQbQma+0/R7SLJNojJXSTzv6gFN13C7e6j7/ In-Reply-To: <83y1ys5q4e.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 23 May 2022 16:34:57 +0300") Original-Message-ID: <868rqsw9rd.fsf@foxmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:232976 Eli Zaretskii writes: >> From: Eason Huang >> 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