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: Tue, 13 Feb 2018 07:03:19 +0200 Message-ID: <834lmlzdk8.fsf@gnu.org> References: <874lmpzx1t.fsf@runbox.com> <87po5dczl1.fsf@users.sourceforge.net> <83tvup2q7u.fsf@gnu.org> <2061ef0c-de4d-d8c1-aea8-786223e59c7e@cs.ucla.edu> <83wozk1qsy.fsf@gnu.org> <8337271jz0.fsf@gnu.org> <83zi4fz91t.fsf@gnu.org> <3db2fa4f-fe6b-a5db-599e-b0bcd0b8511b@cs.ucla.edu> <83a7weyspq.fsf@gnu.org> <9c0033de-9afc-13f9-57cd-7970eb3cb07c@cs.ucla.edu> <836072yo6z.fsf@gnu.org> <78c6e835-d516-3e40-37d1-2486ed304019@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1518498149 30881 195.159.176.226 (13 Feb 2018 05:02:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Feb 2018 05:02:29 +0000 (UTC) Cc: gazally@runbox.com, 30405@debbugs.gnu.org, npostavs@users.sourceforge.net To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 13 06:02:25 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 1elSjI-0006mp-IR for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Feb 2018 06:02:08 +0100 Original-Received: from localhost ([::1]:42402 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elSlK-0005rc-CS for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Feb 2018 00:04:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elSlE-0005q2-7c for bug-gnu-emacs@gnu.org; Tue, 13 Feb 2018 00:04:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elSl9-00009K-J2 for bug-gnu-emacs@gnu.org; Tue, 13 Feb 2018 00:04:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60684) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1elSl9-00009D-FE for bug-gnu-emacs@gnu.org; Tue, 13 Feb 2018 00:04:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1elSl9-0002cS-3r for bug-gnu-emacs@gnu.org; Tue, 13 Feb 2018 00:04:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Feb 2018 05:04:03 +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.151849822410044 (code B ref 30405); Tue, 13 Feb 2018 05:04:03 +0000 Original-Received: (at 30405) by debbugs.gnu.org; 13 Feb 2018 05:03:44 +0000 Original-Received: from localhost ([127.0.0.1]:40348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elSkq-0002bv-6V for submit@debbugs.gnu.org; Tue, 13 Feb 2018 00:03:44 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44273) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elSko-0002bk-QJ for 30405@debbugs.gnu.org; Tue, 13 Feb 2018 00:03:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elSki-0007os-U1 for 30405@debbugs.gnu.org; Tue, 13 Feb 2018 00:03:37 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elSkc-0007aj-AA; Tue, 13 Feb 2018 00:03:30 -0500 Original-Received: from [176.228.60.248] (port=3361 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1elSkb-0004fe-9A; Tue, 13 Feb 2018 00:03:30 -0500 In-reply-to: <78c6e835-d516-3e40-37d1-2486ed304019@cs.ucla.edu> (message from Paul Eggert on Mon, 12 Feb 2018 12:31:55 -0800) 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:143239 Archived-At: > Cc: npostavs@users.sourceforge.net, 30405@debbugs.gnu.org, gazally@runbox.com > From: Paul Eggert > Date: Mon, 12 Feb 2018 12:31:55 -0800 > > On 02/12/2018 11:59 AM, Eli Zaretskii wrote: > > unibyte-display-via-language-environment > > explicitly requests display of raw bytes as Latin-1 characters, and it > > requests that everywhere, including the echo area and whatnot. > > That's not how Emacs works, at least not in my experience. For example, > on current emacs-26: > >    emacs -Q >    M-x set-variable RET unibyte-display-via-language-environment RET t RET >    (defun foo () >      (interactive) >      (message "cannot \xA2\u00A2")) C-j >    M-x foo RET > > This displays "\242¢", not "¢¢". Because you shoot your self in the foot by passing a multibyte string to 'message'. In this scenario, you are not supposed to do that, you are supposed to use only unibyte strings. Also, did you try the variant with 'error' instead of 'message' (in which case you need to make *scratch* unibyte before invoking 'foo'. > Since the echo area's context is text and not binary data, the > display of raw bytes in the echo area should be unaffected by > unibyte-display-via-language-environment. That variable's purpose is to display raw bytes as readable text, so I definitely disagree in this specific use case.