From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25365: 25.1; Coding system for bookmarks and desktop Date: Mon, 09 Jan 2017 20:49:35 +0200 Message-ID: <83eg0cdq68.fsf@gnu.org> References: <87mvf57kdx.fsf@gmail.com> <83pojzavhg.fsf@gnu.org> <87d1fxzy9d.fsf@gmail.com> <83k2a5blo9.fsf@gnu.org> <874m18yxei.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1483987816 25033 195.159.176.226 (9 Jan 2017 18:50:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 9 Jan 2017 18:50:16 +0000 (UTC) Cc: 25365@debbugs.gnu.org To: Dmitri Paduchikh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 09 19:50:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQf1D-0005ha-Hf for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Jan 2017 19:50:07 +0100 Original-Received: from localhost ([::1]:41892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQf1H-0001cs-UZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Jan 2017 13:50:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQf1C-0001bN-3g for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2017 13:50:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQf18-0005uV-TE for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2017 13:50:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60877) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cQf18-0005uJ-Q7 for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2017 13:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cQf18-00033z-Iq for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2017 13:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Jan 2017 18:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25365 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25365-submit@debbugs.gnu.org id=B25365.148398778811752 (code B ref 25365); Mon, 09 Jan 2017 18:50:02 +0000 Original-Received: (at 25365) by debbugs.gnu.org; 9 Jan 2017 18:49:48 +0000 Original-Received: from localhost ([127.0.0.1]:48043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQf0u-00033U-Lf for submit@debbugs.gnu.org; Mon, 09 Jan 2017 13:49:48 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58053) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQf0t-00033H-Mb for 25365@debbugs.gnu.org; Mon, 09 Jan 2017 13:49:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQf0l-0005gl-Bb for 25365@debbugs.gnu.org; Mon, 09 Jan 2017 13:49:42 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47116) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQf0l-0005gg-8K; Mon, 09 Jan 2017 13:49:39 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1431 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cQf0k-0000d0-GO; Mon, 09 Jan 2017 13:49:38 -0500 In-reply-to: <874m18yxei.fsf@gmail.com> (message from Dmitri Paduchikh on Mon, 09 Jan 2017 22:07:49 +0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:127939 Archived-At: > From: Dmitri Paduchikh > Cc: 25365@debbugs.gnu.org > Date: Mon, 09 Jan 2017 22:07:49 +0500 > > It may be hard to know what is happening if it is designed to happen > automatically. So, if you insist on supporting user choice here, please > consider the following patch. It adds the check of workability of the chosen > codec unless it is given directly by user in which case the usual procedure > applies, or the codec is omnipotent. In the case of encodability problems it > will fallback to utf-8-emacs. With the proposed patch, the fallback utf-8-emacs will happen silently, so the user will have no idea that her selected encoding was ignored, isn't it so? If so, I don't think it's a good idea to do that, when the user explicitly asks for a particular encoding. Come to think of that, I actually don't understand why anything is needed in addition to the current code: if the user-chosen encoding cannot safely encode the bookmark file, Emacs will refuse to save the file, and will insist on the user providing a safe encoding. E.g., set a bookmark in TUTORIAL.ru, and then try saving the bookmark file using the Latin-1 encoding. I just tried something like that, and the effect was exactly as I expected: Emacs requested me to provide another encoding. Thanks.