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#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message Date: Sat, 10 Feb 2018 10:02:26 +0200 Message-ID: <83vaf52rxp.fsf@gnu.org> References: <874lmpzx1t.fsf@runbox.com> <52bmgxbsc0.fsf@fencepost.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1518249705 28098 195.159.176.226 (10 Feb 2018 08:01:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Feb 2018 08:01:45 +0000 (UTC) Cc: gazally@runbox.com, eggert@cs.ucla.edu, 30405@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 10 09:01:40 2018 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 1ekQ5v-00056L-UT for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Feb 2018 09:01:12 +0100 Original-Received: from localhost ([::1]:37467 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekQ7s-0008VU-3l for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Feb 2018 03:03:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekQ7j-0008V5-5U for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2018 03:03:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekQ7i-0000UL-Df for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2018 03:03:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56340) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ekQ7i-0000UC-A9 for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2018 03:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ekQ7i-0007dF-0q for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2018 03:03: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: Sat, 10 Feb 2018 08:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30405 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30405-submit@debbugs.gnu.org id=B30405.151824977829327 (code B ref 30405); Sat, 10 Feb 2018 08:03:01 +0000 Original-Received: (at 30405) by debbugs.gnu.org; 10 Feb 2018 08:02:58 +0000 Original-Received: from localhost ([127.0.0.1]:36004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekQ7d-0007cx-Se for submit@debbugs.gnu.org; Sat, 10 Feb 2018 03:02:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59919) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekQ7b-0007ck-H4 for 30405@debbugs.gnu.org; Sat, 10 Feb 2018 03:02:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekQ7S-0000Im-92 for 30405@debbugs.gnu.org; Sat, 10 Feb 2018 03:02:50 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekQ7S-0000Id-63; Sat, 10 Feb 2018 03:02:46 -0500 Original-Received: from [176.228.60.248] (port=2936 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ekQ7Q-0003P4-KW; Sat, 10 Feb 2018 03:02:45 -0500 In-reply-to: <52bmgxbsc0.fsf@fencepost.gnu.org> (message from Glenn Morris on Fri, 09 Feb 2018 19:29:03 -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:143072 Archived-At: > From: Glenn Morris > Date: Fri, 09 Feb 2018 19:29:03 -0500 > Cc: Paul Eggert , 30405@debbugs.gnu.org > > Maybe a better example is: > > (defun foo () > (interactive) > (error "can't")) > (set-buffer-multibyte nil) > M-x foo I applied (the obvious) band-aid to image.el, so it no longer shows a garbled error message. The more general issue should be fixed on master, as it's too late to make such changes on the release branch. Note also that substitute-command-keys is affected as well, as can be seen by evaluating the following: (progn (set-buffer-multibyte nil) (substitute-command-keys "can't")) Basically, anything that produces non-ASCII characters and then shows that in the echo area while the current buffer is unibyte will hit this problem. While Lisp programs that produce literal strings can be told to take care of that when they use unibyte buffers, the cases discussed in this bug report happen because we convert ASCII strings to non-ASCII strings under the hood, so the Lisp programs cannot be held accountable.