From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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 16:34:57 +0300 Message-ID: <83y1ys5q4e.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35107"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55592@debbugs.gnu.org To: Eason Huang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 23 15:36:22 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 1nt8EP-0008ye-KS for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 May 2022 15:36:21 +0200 Original-Received: from localhost ([::1]:45730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nt8EN-00045M-Au for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 May 2022 09:36:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nt8E6-00041f-NS for bug-gnu-emacs@gnu.org; Mon, 23 May 2022 09:36:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53798) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nt8E6-0000Xf-Dk for bug-gnu-emacs@gnu.org; Mon, 23 May 2022 09:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nt8E6-0007Zf-By for bug-gnu-emacs@gnu.org; Mon, 23 May 2022 09:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 May 2022 13:36:02 +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.165331293829087 (code B ref 55592); Mon, 23 May 2022 13:36:02 +0000 Original-Received: (at 55592) by debbugs.gnu.org; 23 May 2022 13:35:38 +0000 Original-Received: from localhost ([127.0.0.1]:47695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nt8Di-0007Z5-8N for submit@debbugs.gnu.org; Mon, 23 May 2022 09:35:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nt8De-0007Yo-ED for 55592@debbugs.gnu.org; Mon, 23 May 2022 09:35:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34174) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nt8DW-0000Nc-9d; Mon, 23 May 2022 09:35:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=j8QsyUix7oFgL4oprJ3tSwLBqShT1xFYXXC8t+jv/EY=; b=coOyNlID2QpA BdlsWIcNSNfs3+/tkvLzSOTi875hsLYLAJxmYGynqk32uMJC5bEm0/VIJIcwxv/aJzmoCrwIZ8K2n A1rXB4PmEzsR51/QuPysbsgFP2HXvSjLLSeNcVsbzZQypaOdj5kaTnp+FuuXbDnXTWDChmoPpgknA sFIrcLABf5SDQoUzqnzFtizKLm+qOKSGu09bgQGDv8KxoPbf3FdpxRk7CGr1ir0mBg62qlS5JCtEj r7yUgCEcEW8Pvr9rnVBb+E4PCZb4efwxaHDEPP6T0YHmdMtP4cLAgvood8HCU4KmKNXrBef00t+zN 1xNd+j/YAFrii58ZK99Ypw==; Original-Received: from [87.69.77.57] (port=1166 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nt8DJ-0007wy-5k; Mon, 23 May 2022 09:35:24 -0400 In-Reply-To: (message from Eason Huang on Mon, 23 May 2022 20:28:56 +0800) 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:232971 Archived-At: > 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.