From unknown Tue Jun 17 20:17:23 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#30405 <30405@debbugs.gnu.org> To: bug#30405 <30405@debbugs.gnu.org> Subject: Status: 26.0.91; Incorrect apostrophe translation in ImageMagick error message Reply-To: bug#30405 <30405@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:17:23 +0000 retitle 30405 26.0.91; Incorrect apostrophe translation in ImageMagick erro= r message reassign 30405 emacs submitter 30405 Gemini Lasswell severity 30405 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 09 16:14:02 2018 Received: (at submit) by debbugs.gnu.org; 9 Feb 2018 21:14:02 +0000 Received: from localhost ([127.0.0.1]:35752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekFze-0006SY-0f for submit@debbugs.gnu.org; Fri, 09 Feb 2018 16:14:02 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56012) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekFzb-0006Rv-EV for submit@debbugs.gnu.org; Fri, 09 Feb 2018 16:14:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekFzV-0000Xk-1f for submit@debbugs.gnu.org; Fri, 09 Feb 2018 16:13:54 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49876) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ekFzU-0000Xe-Tp for submit@debbugs.gnu.org; Fri, 09 Feb 2018 16:13:52 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekFzT-0006uJ-BN for bug-gnu-emacs@gnu.org; Fri, 09 Feb 2018 16:13:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekFzQ-0000VQ-5X for bug-gnu-emacs@gnu.org; Fri, 09 Feb 2018 16:13:51 -0500 Received: from aibo.runbox.com ([91.220.196.211]:59090) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ekFzP-0000Tp-Pm for bug-gnu-emacs@gnu.org; Fri, 09 Feb 2018 16:13:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=rbselector1; h=Content-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:Date:Subject:To:From; bh=YqoC237+HctlWt4XD9cxRTLELbIqzMbpKvPSmYqyGOo=; b=NvlQ8SLn6yuxRVwWgZ8XK0bX7K GeODvIT6vpoOSJPUh35bZWYOj8TSjCyT04CENvUJpZvLdnbm+d61pwynC520hUv5YGEgLx3c52Pb8 IR5IAYUM/6Y+dkORjIu08R14XOr3X7yjiGzVb+DNBuAKa+xYV4q4Fyfu7myr+Y5UV3ZThbCyQUllD M2i1F1VoDYCZQQUqU1tXh8MLx7nIGwGxoz0Jo2sZCWgEGaWuUbgqaLLDajrmy7NEQsDKhVbi2olZ/ J/P+IiioQwhDTDx51UbfK4X/SzdYTEO/8jCxZ/QXlE5jV/J7b+96TNs6pw9P3OPwRjAu2ZB019dEv 1wD8m/hg==; Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1ekFzM-0001K7-Kk for bug-gnu-emacs@gnu.org; Fri, 09 Feb 2018 22:13:44 +0100 Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161] helo=chinook) by mailfront10.runbox.com with esmtpsa (uid:179284 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1ekFz5-0006Lt-2H for bug-gnu-emacs@gnu.org; Fri, 09 Feb 2018 22:13:27 +0100 From: Gemini Lasswell To: bug-gnu-emacs@gnu.org Subject: 26.0.91; Incorrect apostrophe translation in ImageMagick error message Date: Fri, 09 Feb 2018 13:13:18 -0800 Message-ID: <874lmpzx1t.fsf@runbox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) When I try to resize an image using an Emacs built without ImageMagick, either with emacs -Q or my full config, the apostrophe in the error message is not displayed correctly. To reproduce: C-x C-f path/to/image-file.jpg RET + Result: The error "Can^Yt rescale images without ImageMagick support" appears in the echo area. When I define this little command and run it: (defun my-command () (interactive) (error "Can't do this")) then the typographically correct apostrophe appears in the echo area. In *Messages*, the first error message appears as: Can\342\200\231t rescale images without ImageMagick support although now in report-emacs-bug's message composition buffer, I see the typograpically correct apostrophe. In GNU Emacs 26.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.21) of 2018-02-09 built on localhost Windowing system distributor 'The X.Org Foundation', version 11.0.11905000 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Type C-c C-c or C-c C-x to view the image as text or hex. image--get-imagemagick-and-warn: Can=E2=80=99t rescale images without Image= Magick support Configured using: 'configure --prefix=3D/nix/store/y06nnna2nzr4fx1pbigs67hbjm396ijn-emacs-26.0 --with-modules --with-x-toolkit=3Dgtk3 --with-xft' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Image[jpeg] Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils map seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib image-mode easymenu elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 97112 7073) (symbols 48 20569 1) (miscs 40 47 79) (strings 32 28786 1005) (string-bytes 1 777748) (vectors 16 15028) (vector-slots 8 504094 7678) (floats 8 58 59) (intervals 56 209 0) (buffers 992 12)) From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 09 17:45:10 2018 Received: (at control) by debbugs.gnu.org; 9 Feb 2018 22:45:10 +0000 Received: from localhost ([127.0.0.1]:35858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekHPq-00030L-3j for submit@debbugs.gnu.org; Fri, 09 Feb 2018 17:45:10 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42749) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekHPm-0002zq-L7 for control@debbugs.gnu.org; Fri, 09 Feb 2018 17:45:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekHPg-0001cp-UC for control@debbugs.gnu.org; Fri, 09 Feb 2018 17:45:01 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekHPg-0001ci-RM for control@debbugs.gnu.org; Fri, 09 Feb 2018 17:45:00 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ekHPg-000157-KW for control@debbugs.gnu.org; Fri, 09 Feb 2018 17:45:00 -0500 Subject: control message for bug 30405 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Fri, 09 Feb 2018 17:45:00 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) found 30405 25.1 From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 09 18:04:55 2018 Received: (at 30405) by debbugs.gnu.org; 9 Feb 2018 23:04:55 +0000 Received: from localhost ([127.0.0.1]:35867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekHix-0005PN-4o for submit@debbugs.gnu.org; Fri, 09 Feb 2018 18:04:55 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekHiv-0005PA-PK for 30405@debbugs.gnu.org; Fri, 09 Feb 2018 18:04:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekHiq-0005u7-0y for 30405@debbugs.gnu.org; Fri, 09 Feb 2018 18:04:48 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekHim-0005sC-7e; Fri, 09 Feb 2018 18:04:44 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ekHik-0003aY-Iu; Fri, 09 Feb 2018 18:04:42 -0500 From: Glenn Morris To: Gemini Lasswell Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message References: <874lmpzx1t.fsf@runbox.com> X-Spook: satellite imagery cryptographic FMD Islamist Perl-RSA FBI X-Ran: Xc7q(F)5_u+OewWW%,D0>qlW4M?`iC"'b; (Gemini Lasswell's message of "Fri, 09 Feb 2018 13:13:18 -0800") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30405 Cc: Paul Eggert , 30405@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Gemini Lasswell wrote: > When I try to resize an image using an Emacs built without > ImageMagick, either with emacs -Q or my full config, the apostrophe in > the error message is not displayed correctly. To reproduce: > > C-x C-f path/to/image-file.jpg RET > + > > Result: The error "Can^Yt rescale images without ImageMagick support" > appears in the echo area. Present since 25.1. Perhaps a minimal example is: emacs -Q (set-buffer-multibyte nil) (message "can't") From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 09 19:10:54 2018 Received: (at 30405) by debbugs.gnu.org; 10 Feb 2018 00:10:55 +0000 Received: from localhost ([127.0.0.1]:35884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekIko-00071W-Oc for submit@debbugs.gnu.org; Fri, 09 Feb 2018 19:10:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53267) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekIkm-00071J-UU for 30405@debbugs.gnu.org; Fri, 09 Feb 2018 19:10:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekIkg-0007w5-RC for 30405@debbugs.gnu.org; Fri, 09 Feb 2018 19:10:47 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekIkd-0007u4-3A; Fri, 09 Feb 2018 19:10:43 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ekIkc-0002Jw-8E; Fri, 09 Feb 2018 19:10:42 -0500 From: Glenn Morris To: Gemini Lasswell Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message References: <874lmpzx1t.fsf@runbox.com> X-Spook: S Box IED NOC Environmental terrorist Arellano-Felix spy X-Ran: }5\p@\y_>.a_L"Z?g~f$}&;p"ztn=Jc7c?m/X%:B{:=ch}&$Z;|r%{ONQ:\hf$B,& X-Hue: red X-Attribution: GM Date: Fri, 09 Feb 2018 19:10:42 -0500 In-Reply-To: (Glenn Morris's message of "Fri, 09 Feb 2018 18:04:42 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30405 Cc: Paul Eggert , 30405@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Glenn Morris wrote: > Present since 25.1. Perhaps a minimal example is: > emacs -Q > (set-buffer-multibyte nil) > (message "can't") Although I might be confusing the return value with the displayed message. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 09 19:29:17 2018 Received: (at 30405) by debbugs.gnu.org; 10 Feb 2018 00:29:17 +0000 Received: from localhost ([127.0.0.1]:35890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekJ2b-0007Td-9T for submit@debbugs.gnu.org; Fri, 09 Feb 2018 19:29:17 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55413) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekJ2Z-0007TQ-Ba for 30405@debbugs.gnu.org; Fri, 09 Feb 2018 19:29:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekJ2T-0003bp-9G for 30405@debbugs.gnu.org; Fri, 09 Feb 2018 19:29:09 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekJ2O-0003Yt-3U; Fri, 09 Feb 2018 19:29:04 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ekJ2N-0006tt-MB; Fri, 09 Feb 2018 19:29:03 -0500 From: Glenn Morris To: Gemini Lasswell Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message References: <874lmpzx1t.fsf@runbox.com> X-Spook: Taiwan Blackout wire transfer BATF Bomb squad Tamil X-Ran: SA\\EAHPZ'BWsh_6Jl]<{NYO (Glenn Morris's message of "Fri, 09 Feb 2018 19:10:42 -0500") Message-ID: <52bmgxbsc0.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30405 Cc: Paul Eggert , 30405@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Maybe a better example is: (defun foo () (interactive) (error "can't")) (set-buffer-multibyte nil) M-x foo From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 09 22:07:16 2018 Received: (at 30405) by debbugs.gnu.org; 10 Feb 2018 03:07:17 +0000 Received: from localhost ([127.0.0.1]:35909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekLVU-0002qn-M1 for submit@debbugs.gnu.org; Fri, 09 Feb 2018 22:07:16 -0500 Received: from mail-it0-f46.google.com ([209.85.214.46]:34985) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekLVT-0002qa-EM for 30405@debbugs.gnu.org; Fri, 09 Feb 2018 22:07:15 -0500 Received: by mail-it0-f46.google.com with SMTP id e1so677021ita.0 for <30405@debbugs.gnu.org>; Fri, 09 Feb 2018 19:07:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Z4272sYM7iyRMkanP42DCogPkygdhoT4ggIOCtfaT44=; b=ey0LNKcUaJ2wOlHeR9atW14Eaeif1mAeKUFo1CNuU/mrCovWI5w+476GIWnwbmVoGJ M9BQbpSFqOCaUZeYv3ThwLG4PeFq4Nyu1e1dPFAk2qvXi4eIR1f9M9alsQ091KapUo1E vjWTZze1WMMDfbnrV0pd3hD1by+X9MU2xDu6jn1dC1e6fnbRZijtakWEIS2AviyoGoup ryEfCusr6y9C93uBldUN13OGfh7hmmD2tXQuvxcVwlqq5pUuYQHm5b4PMaOTLIyVbDpV izaBWCkfZq2jU738agrZEVgxQeowLwJDj3lOBn7uTOGKIxWxqD+Wk45TO2UpWghCnTzv 7F/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=Z4272sYM7iyRMkanP42DCogPkygdhoT4ggIOCtfaT44=; b=Kdua78pDlyu8uEfeYOnid6I3QZFzWSukcpSbUcpKmZUHF58yZyWx4RgQkhYeJma9hx sO1BQko+cuseDYzc4MrsimoNMR5juYk7QtkgIIAC5lYWPVHgPMbj57WN0LIJdWIYdjxw ceQkmp9MZZLau2RrzdGcXIeIPC5W1xwu0dghCTE8pbaCMuDewKvwVTEqtCKVwg3HKuWp WjuxXbzCe3wLWsl4I61iStOQ2vl0uhAp7fpApW7dZDM6V1/Xz2IbDEzlow+vuW2PvIra MZwEnwnc7oI9QTtn4OZRjt81fzJl5+p34j0BEec5znrjc/S8vjRmWdIBvtG1u6Ru3/Wg BmSg== X-Gm-Message-State: APf1xPCwYOFY7KZ74L+5SCrX4NSQUpHEeuQRQUR6kBRcJggOoTKXMlZM kUqrSM+RivbegKxZcmlf7JuQBw== X-Google-Smtp-Source: AH8x225oONNGyKxSm+fHuLlRYjbPDPXOBVlt7X4ZG1OPDPrM0DDYz6eQIPyz60i0ydA60RX1bZrGAg== X-Received: by 10.36.103.66 with SMTP id u63mr6072436itc.38.1518232029500; Fri, 09 Feb 2018 19:07:09 -0800 (PST) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id e18sm481814itc.4.2018.02.09.19.07.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Feb 2018 19:07:08 -0800 (PST) From: Noam Postavsky To: Glenn Morris Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message References: <874lmpzx1t.fsf@runbox.com> Date: Fri, 09 Feb 2018 22:07:06 -0500 In-Reply-To: (Glenn Morris's message of "Fri, 09 Feb 2018 18:04:42 -0500") Message-ID: <87po5dczl1.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 30405 Cc: Gemini Lasswell , Paul Eggert , 30405@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) Glenn Morris writes: > Present since 25.1. Perhaps a minimal example is: > emacs -Q > (set-buffer-multibyte nil) > (message "can't") The issue with message producing fancy quotes is new in 25.1, although stepping with the debugger, it looks like the root cause is that the " *Echo Area 0*" buffer becomes unibyte along with the main buffer. So the following shows the problem in earlier versions as well: (set-buffer-multibyte nil) (message "can\u2019t") From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 10 03:02:58 2018 Received: (at 30405) by debbugs.gnu.org; 10 Feb 2018 08:02:58 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 Date: Sat, 10 Feb 2018 10:02:26 +0200 Message-Id: <83vaf52rxp.fsf@gnu.org> From: Eli Zaretskii To: Glenn Morris In-reply-to: <52bmgxbsc0.fsf@fencepost.gnu.org> (message from Glenn Morris on Fri, 09 Feb 2018 19:29:03 -0500) Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message References: <874lmpzx1t.fsf@runbox.com> <52bmgxbsc0.fsf@fencepost.gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30405 Cc: gazally@runbox.com, eggert@cs.ucla.edu, 30405@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 10 03:40:06 2018 Received: (at 30405) by debbugs.gnu.org; 10 Feb 2018 08:40:06 +0000 Received: from localhost ([127.0.0.1]:36012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekQhZ-00005p-Sl for submit@debbugs.gnu.org; Sat, 10 Feb 2018 03:40:06 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekQhX-00005D-Li for 30405@debbugs.gnu.org; Sat, 10 Feb 2018 03:40:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekQhO-00008A-BA for 30405@debbugs.gnu.org; Sat, 10 Feb 2018 03:39:58 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekQhO-000082-7u; Sat, 10 Feb 2018 03:39:54 -0500 Received: from [176.228.60.248] (port=2962 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ekQhM-0007Ox-Ar; Sat, 10 Feb 2018 03:39:52 -0500 Date: Sat, 10 Feb 2018 10:39:33 +0200 Message-Id: <83tvup2q7u.fsf@gnu.org> From: Eli Zaretskii To: Noam Postavsky In-reply-to: <87po5dczl1.fsf@users.sourceforge.net> (message from Noam Postavsky on Fri, 09 Feb 2018 22:07:06 -0500) Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message References: <874lmpzx1t.fsf@runbox.com> <87po5dczl1.fsf@users.sourceforge.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30405 Cc: rgm@gnu.org, eggert@cs.ucla.edu, 30405@debbugs.gnu.org, gazally@runbox.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Noam Postavsky > Date: Fri, 09 Feb 2018 22:07:06 -0500 > Cc: Gemini Lasswell , Paul Eggert , > 30405@debbugs.gnu.org > > The issue with message producing fancy quotes is new in 25.1, although > stepping with the debugger, it looks like the root cause is that the > " *Echo Area 0*" buffer becomes unibyte along with the main buffer. So > the following shows the problem in earlier versions as well: > > (set-buffer-multibyte nil) > (message "can\u2019t") This is the intended behavior, not a bug. We make the echo area buffer unibyte when the message is generated with the current buffer being unibyte. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 10 09:15:51 2018 Received: (at 30405) by debbugs.gnu.org; 10 Feb 2018 14:15:51 +0000 Received: from localhost ([127.0.0.1]:36264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekVwU-0006Kp-Uh for submit@debbugs.gnu.org; Sat, 10 Feb 2018 09:15:51 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:43926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekVwT-0006Hk-0d for 30405@debbugs.gnu.org; Sat, 10 Feb 2018 09:15:49 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3zdv9H5szhz1qvBw; Sat, 10 Feb 2018 15:15:47 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3zdv9H2S7tz1r2bR; Sat, 10 Feb 2018 15:15:47 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id AWIHSDogIQVr; Sat, 10 Feb 2018 15:15:46 +0100 (CET) X-Auth-Info: 2/sH3x/fVUvRmRET7Pgu7ShZ6ZYkpOsHqtQ7Gab2wIQk++GVgAG3rxE9IsJEiGT+ Received: from localhost (ppp-188-174-154-31.dynamic.mnet-online.de [188.174.154.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sat, 10 Feb 2018 15:15:46 +0100 (CET) Received: by localhost (Postfix, from userid 1000) id 13DAB2C2CF0; Sat, 10 Feb 2018 15:15:46 +0100 (CET) From: Andreas Schwab To: Eli Zaretskii Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message References: <874lmpzx1t.fsf@runbox.com> <87po5dczl1.fsf@users.sourceforge.net> <83tvup2q7u.fsf@gnu.org> X-Yow: Will it improve my CASH FLOW? Date: Sat, 10 Feb 2018 15:15:46 +0100 In-Reply-To: <83tvup2q7u.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 10 Feb 2018 10:39:33 +0200") Message-ID: <87lgg1aq25.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 30405 Cc: gazally@runbox.com, eggert@cs.ucla.edu, 30405@debbugs.gnu.org, Noam Postavsky X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On Feb 10 2018, Eli Zaretskii wrote: > This is the intended behavior, not a bug. We make the echo area > buffer unibyte when the message is generated with the current buffer > being unibyte. Do we? What I see in set_message_1 is that we set the echo area buffer multibyteness to the same as the string to be displayed. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 10 11:44:25 2018 Received: (at 30405) by debbugs.gnu.org; 10 Feb 2018 16:44:25 +0000 Received: from localhost ([127.0.0.1]:37178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekYGG-0004RR-RV for submit@debbugs.gnu.org; Sat, 10 Feb 2018 11:44:25 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekYGF-0004RE-0s for 30405@debbugs.gnu.org; Sat, 10 Feb 2018 11:44:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekYG8-0002BA-NN for 30405@debbugs.gnu.org; Sat, 10 Feb 2018 11:44:17 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekYG2-00026X-UZ; Sat, 10 Feb 2018 11:44:10 -0500 Received: from [176.228.60.248] (port=4133 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ekYG2-0005A8-92; Sat, 10 Feb 2018 11:44:10 -0500 Date: Sat, 10 Feb 2018 18:43:53 +0200 Message-Id: <831shs3id2.fsf@gnu.org> From: Eli Zaretskii To: Andreas Schwab In-reply-to: <87lgg1aq25.fsf@linux-m68k.org> (message from Andreas Schwab on Sat, 10 Feb 2018 15:15:46 +0100) Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message References: <874lmpzx1t.fsf@runbox.com> <87po5dczl1.fsf@users.sourceforge.net> <83tvup2q7u.fsf@gnu.org> <87lgg1aq25.fsf@linux-m68k.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30405 Cc: gazally@runbox.com, eggert@cs.ucla.edu, 30405@debbugs.gnu.org, npostavs@users.sourceforge.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Andreas Schwab > Cc: Noam Postavsky , eggert@cs.ucla.edu, 30405@debbugs.gnu.org, gazally@runbox.com > Date: Sat, 10 Feb 2018 15:15:46 +0100 > > What I see in set_message_1 is that we set the echo area buffer > multibyteness to the same as the string to be displayed. That function is not called in the use case discussed here (I initially also thought it was part of the story, but GDB convinced me otherwise). The function which is relevant here is setup_echo_area_for_printing, it is called from PRINTPREPARE. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 10 13:57:38 2018 Received: (at 30405) by debbugs.gnu.org; 10 Feb 2018 18:57:38 +0000 Received: from localhost ([127.0.0.1]:37228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekaLC-0007V0-1t for submit@debbugs.gnu.org; Sat, 10 Feb 2018 13:57:38 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:39070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekaLA-0007Ul-4v for 30405@debbugs.gnu.org; Sat, 10 Feb 2018 13:57:36 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 968EC161751; Sat, 10 Feb 2018 10:57:29 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id u1xGdeYBGtje; Sat, 10 Feb 2018 10:57:28 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id DEAF4161752; Sat, 10 Feb 2018 10:57:28 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id HAiQnpbvlO9I; Sat, 10 Feb 2018 10:57:28 -0800 (PST) Received: from [192.168.1.9] (unknown [47.154.30.119]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 8F277161751; Sat, 10 Feb 2018 10:57:28 -0800 (PST) Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message To: Eli Zaretskii , Noam Postavsky References: <874lmpzx1t.fsf@runbox.com> <87po5dczl1.fsf@users.sourceforge.net> <83tvup2q7u.fsf@gnu.org> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <2061ef0c-de4d-d8c1-aea8-786223e59c7e@cs.ucla.edu> Date: Sat, 10 Feb 2018 10:57:28 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <83tvup2q7u.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 30405 Cc: rgm@gnu.org, 30405@debbugs.gnu.org, gazally@runbox.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Eli Zaretskii wrote: > We make the echo area > buffer unibyte when the message is generated with the current buffer > being unibyte. This made sense back in the 1990s when unibyte was commonly used for text. Nowadays, though, wouldn't it make more sense to keep the echo area multibyte? The echo area is intended for text, not for binary data. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 10 16:24:58 2018 Received: (at 30405) by debbugs.gnu.org; 10 Feb 2018 21:24:58 +0000 Received: from localhost ([127.0.0.1]:37284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekcdm-0004JW-KD for submit@debbugs.gnu.org; Sat, 10 Feb 2018 16:24:58 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekcdk-0004JH-VJ for 30405@debbugs.gnu.org; Sat, 10 Feb 2018 16:24:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekcdc-0007Nq-Uq for 30405@debbugs.gnu.org; Sat, 10 Feb 2018 16:24:51 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45755) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekcdc-0007Nl-Q8; Sat, 10 Feb 2018 16:24:48 -0500 Received: from [176.228.60.248] (port=4414 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ekcdb-0003kl-Q6; Sat, 10 Feb 2018 16:24:48 -0500 Date: Sat, 10 Feb 2018 23:24:29 +0200 Message-Id: <83wozk1qsy.fsf@gnu.org> From: Eli Zaretskii To: Paul Eggert In-reply-to: <2061ef0c-de4d-d8c1-aea8-786223e59c7e@cs.ucla.edu> (message from Paul Eggert on Sat, 10 Feb 2018 10:57:28 -0800) Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message References: <874lmpzx1t.fsf@runbox.com> <87po5dczl1.fsf@users.sourceforge.net> <83tvup2q7u.fsf@gnu.org> <2061ef0c-de4d-d8c1-aea8-786223e59c7e@cs.ucla.edu> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30405 Cc: rgm@gnu.org, 30405@debbugs.gnu.org, gazally@runbox.com, npostavs@users.sourceforge.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: rgm@gnu.org, gazally@runbox.com, 30405@debbugs.gnu.org > From: Paul Eggert > Date: Sat, 10 Feb 2018 10:57:28 -0800 > > Eli Zaretskii wrote: > > We make the echo area > > buffer unibyte when the message is generated with the current buffer > > being unibyte. > > This made sense back in the 1990s when unibyte was commonly used for text. > Nowadays, though, wouldn't it make more sense to keep the echo area multibyte? > The echo area is intended for text, not for binary data. I don't see how the date outside could matter here. If you understand the reason behind the code in question, please describe it, and we can then discuss whether that reason is still valid in the current codebase. I have a guess for why we did that: it's because in Emacs 21 we displayed raw bytes as Latin-N characters, so non-ASCII text in unibyte strings needed a unibyte buffer to display it as expected. But that feature is no longer available, as raw bytes are always displayed as octal escapes. The question that bothers me is can a unibyte string inserted or printed into a multibyte buffer be converted to something that will display as a non-ASCII character, not as an octal escape. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 10 16:31:20 2018 Received: (at 30405) by debbugs.gnu.org; 10 Feb 2018 21:31:20 +0000 Received: from localhost ([127.0.0.1]:37288 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekcjw-0004TJ-Bm for submit@debbugs.gnu.org; Sat, 10 Feb 2018 16:31:20 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekcjv-0004T7-0l for 30405@debbugs.gnu.org; Sat, 10 Feb 2018 16:31:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekcjo-00068Q-UH for 30405@debbugs.gnu.org; Sat, 10 Feb 2018 16:31:13 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekcjf-00060I-Oo; Sat, 10 Feb 2018 16:31:03 -0500 Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ekcjX-000860-24; Sat, 10 Feb 2018 16:30:55 -0500 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: Paul Eggert In-reply-to: <2061ef0c-de4d-d8c1-aea8-786223e59c7e@cs.ucla.edu> (message from Paul Eggert on Sat, 10 Feb 2018 10:57:28 -0800) Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message References: <874lmpzx1t.fsf@runbox.com> <87po5dczl1.fsf@users.sourceforge.net> <83tvup2q7u.fsf@gnu.org> <2061ef0c-de4d-d8c1-aea8-786223e59c7e@cs.ucla.edu> Message-Id: Date: Sat, 10 Feb 2018 16:30:55 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30405 Cc: gazally@runbox.com, eliz@gnu.org, 30405@debbugs.gnu.org, npostavs@users.sourceforge.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > This made sense back in the 1990s when unibyte was commonly used for text. > Nowadays, though, wouldn't it make more sense to keep the echo area multibyte? > The echo area is intended for text, not for binary data. I agree in principle. But I don't know how much work the change would be. -- Dr Richard Stallman President, Free Software Foundation (https://gnu.org, https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) Skype: No way! See https://stallman.org/skype.html. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 10 18:34:16 2018 Received: (at 30405) by debbugs.gnu.org; 10 Feb 2018 23:34:16 +0000 Received: from localhost ([127.0.0.1]:37398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekeeu-0000pP-Nc for submit@debbugs.gnu.org; Sat, 10 Feb 2018 18:34:16 -0500 Received: from eggs.gnu.org ([208.118.235.92]:32839) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekeet-0000pE-UL for 30405@debbugs.gnu.org; Sat, 10 Feb 2018 18:34:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekeen-00012u-Rq for 30405@debbugs.gnu.org; Sat, 10 Feb 2018 18:34:10 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekeei-0000x6-KQ; Sat, 10 Feb 2018 18:34:04 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ekeeh-0001Ll-17; Sat, 10 Feb 2018 18:34:03 -0500 From: Glenn Morris To: Gemini Lasswell Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message References: <874lmpzx1t.fsf@runbox.com> <52bmgxbsc0.fsf@fencepost.gnu.org> X-Spook: nuclear offensive information warfare Sleet afsatcom X-Ran: Q{/O5CQ^rdUI/uy}Q<)M=HXU^%-_>#D*}@pfu,o!JBX`I^|k\CD-Av-S3K\(\5WYxPM&-g X-Hue: brightcyan X-Attribution: GM Date: Sat, 10 Feb 2018 18:34:02 -0500 In-Reply-To: <52bmgxbsc0.fsf@fencepost.gnu.org> (Glenn Morris's message of "Fri, 09 Feb 2018 19:29:03 -0500") Message-ID: <0ty3k02zdh.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30405 Cc: Paul Eggert , 30405@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Glenn Morris wrote: > Maybe a better example is: > > (defun foo () > (interactive) > (error "can't")) > (set-buffer-multibyte nil) > M-x foo BTW, replace "error" with "message" and the issue does not appear. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 10 22:39:17 2018 Received: (at 30405) by debbugs.gnu.org; 11 Feb 2018 03:39:17 +0000 Received: from localhost ([127.0.0.1]:37511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekiU1-0006OB-EI for submit@debbugs.gnu.org; Sat, 10 Feb 2018 22:39:17 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41175) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekiTz-0006Nv-MI for 30405@debbugs.gnu.org; Sat, 10 Feb 2018 22:39:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekiTq-00081r-S0 for 30405@debbugs.gnu.org; Sat, 10 Feb 2018 22:39:10 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37643) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekiTq-00081g-O5; Sat, 10 Feb 2018 22:39:06 -0500 Received: from [176.228.60.248] (port=4603 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ekiTp-0006Wb-OI; Sat, 10 Feb 2018 22:39:06 -0500 Date: Sun, 11 Feb 2018 05:38:50 +0200 Message-Id: <83sha819h1.fsf@gnu.org> From: Eli Zaretskii To: Glenn Morris In-reply-to: <0ty3k02zdh.fsf@fencepost.gnu.org> (message from Glenn Morris on Sat, 10 Feb 2018 18:34:02 -0500) Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message References: <874lmpzx1t.fsf@runbox.com> <52bmgxbsc0.fsf@fencepost.gnu.org> <0ty3k02zdh.fsf@fencepost.gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30405 Cc: gazally@runbox.com, eggert@cs.ucla.edu, 30405@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Glenn Morris > Date: Sat, 10 Feb 2018 18:34:02 -0500 > Cc: Paul Eggert , 30405@debbugs.gnu.org > > Glenn Morris wrote: > > > Maybe a better example is: > > > > (defun foo () > > (interactive) > > (error "can't")) > > (set-buffer-multibyte nil) > > M-x foo > > BTW, replace "error" with "message" and the issue does not appear. Because 'message' doesn't change the quotes. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 10 22:41:47 2018 Received: (at 30405) by debbugs.gnu.org; 11 Feb 2018 03:41:47 +0000 Received: from localhost ([127.0.0.1]:37515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekiWQ-0006S1-Rt for submit@debbugs.gnu.org; Sat, 10 Feb 2018 22:41:47 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43093) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekiWO-0006Rn-N4 for 30405@debbugs.gnu.org; Sat, 10 Feb 2018 22:41:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekiWG-0002Bm-65 for 30405@debbugs.gnu.org; Sat, 10 Feb 2018 22:41:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekiWG-0002Bb-2O; Sat, 10 Feb 2018 22:41:36 -0500 Received: from [176.228.60.248] (port=4606 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ekiWE-0007D6-VG; Sat, 10 Feb 2018 22:41:35 -0500 Date: Sun, 11 Feb 2018 05:41:19 +0200 Message-Id: <83r2ps19cw.fsf@gnu.org> From: Eli Zaretskii To: rgm@gnu.org In-reply-to: <83sha819h1.fsf@gnu.org> (message from Eli Zaretskii on Sun, 11 Feb 2018 05:38:50 +0200) Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message References: <874lmpzx1t.fsf@runbox.com> <52bmgxbsc0.fsf@fencepost.gnu.org> <0ty3k02zdh.fsf@fencepost.gnu.org> <83sha819h1.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30405 Cc: gazally@runbox.com, eggert@cs.ucla.edu, 30405@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sun, 11 Feb 2018 05:38:50 +0200 > From: Eli Zaretskii > Cc: gazally@runbox.com, eggert@cs.ucla.edu, 30405@debbugs.gnu.org > > > BTW, replace "error" with "message" and the issue does not appear. > > Because 'message' doesn't change the quotes. Oops, ignore me. That's not the reason. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 11 00:08:30 2018 Received: (at 30405) by debbugs.gnu.org; 11 Feb 2018 05:08:30 +0000 Received: from localhost ([127.0.0.1]:37551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekjsL-0008TS-SH for submit@debbugs.gnu.org; Sun, 11 Feb 2018 00:08:30 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekjsK-0008TH-A0 for 30405@debbugs.gnu.org; Sun, 11 Feb 2018 00:08:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekjsA-0000OA-Ik for 30405@debbugs.gnu.org; Sun, 11 Feb 2018 00:08:23 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekjs0-0000CZ-64; Sun, 11 Feb 2018 00:08:08 -0500 Received: from [176.12.148.117] (port=64961 helo=[10.208.191.138]) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ekjrx-0005W9-W4; Sun, 11 Feb 2018 00:08:06 -0500 Date: Sun, 11 Feb 2018 07:08:02 +0200 User-Agent: K-9 Mail for Android In-Reply-To: <83r2ps19cw.fsf@gnu.org> References: <874lmpzx1t.fsf@runbox.com> <52bmgxbsc0.fsf@fencepost.gnu.org> <0ty3k02zdh.fsf@fencepost.gnu.org> <83sha819h1.fsf@gnu.org> <83r2ps19cw.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message To: rgm@gnu.org From: Eli Zaretskii Message-ID: <4E24BB5B-B69B-4A75-A3CC-0DF875067BF0@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30405 Cc: gazally@runbox.com, eggert@cs.ucla.edu, 30405@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) On February 11, 2018 5:41:19 AM GMT+02:00, Eli Zaretskii w= rote: > > Date: Sun, 11 Feb 2018 05:38:50 +0200 > > From: Eli Zaretskii > > Cc: gazally@runbox=2Ecom, eggert@cs=2Eucla=2Eedu, 30405@debbugs=2Egnu= =2Eorg > >=20 > > > BTW, replace "error" with "message" and the issue does not appear=2E > >=20 > > Because 'message' doesn't change the quotes=2E >=20 > Oops, ignore me=2E That's not the reason=2E The real reason is that 'message' has a string to display, and so can set = up the echo-area buffer according to multibyteness of that string (it does th= at using set_message_1), whereas 'princ' and friends cannot do that=2E And 'error' calls 'princ'=2E From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 11 12:26:52 2018 Received: (at 30405) by debbugs.gnu.org; 11 Feb 2018 17:26:52 +0000 Received: from localhost ([127.0.0.1]:38563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekvOu-0004P7-Go for submit@debbugs.gnu.org; Sun, 11 Feb 2018 12:26:52 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:39808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekvOr-0004Or-EV for 30405@debbugs.gnu.org; Sun, 11 Feb 2018 12:26:50 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id AFB5516107F; Sun, 11 Feb 2018 09:26:43 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id viO5wvqcnI9i; Sun, 11 Feb 2018 09:26:42 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 5BE671610A8; Sun, 11 Feb 2018 09:26:42 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id UkQfwUNCAeSj; Sun, 11 Feb 2018 09:26:42 -0800 (PST) Received: from [192.168.1.9] (unknown [47.154.30.119]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 2D7DB16107F; Sun, 11 Feb 2018 09:26:42 -0800 (PST) Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message To: Eli Zaretskii 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> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: Date: Sun, 11 Feb 2018 09:26:41 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <83wozk1qsy.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 30405 Cc: rgm@gnu.org, 30405@debbugs.gnu.org, gazally@runbox.com, npostavs@users.sourceforge.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Eli Zaretskii wrote: >> Cc: rgm@gnu.org, gazally@runbox.com, 30405@debbugs.gnu.org >> From: Paul Eggert >> Date: Sat, 10 Feb 2018 10:57:28 -0800 >> >> Eli Zaretskii wrote: >>> We make the echo area >>> buffer unibyte when the message is generated with the current buffer >>> being unibyte. >> >> This made sense back in the 1990s when unibyte was commonly used for t= ext. >> Nowadays, though, wouldn't it make more sense to keep the echo area mu= ltibyte? >> The echo area is intended for text, not for binary data. >=20 > I don't see how the date outside could matter here. What I was trying to say is that back in the 1990s it was relatively comm= on for=20 people to run Emacs mostly in unibyte mode and to edit files in a Latin-1= =20 locale, so it was natural for programmers to expect the echo area to be=20 consistent with the file being edited. Nowadays we live in a mostly-multi= byte=20 world, where unibyte inside Emacs is intended only for binary data, and s= o it's=20 no longer a reasonable design choice to have the echo area (which is inte= nded=20 for text messages to the user) to be unibyte (which is now intended for b= inary=20 data). > I have a guess for why we did that: it's because in Emacs 21 we > displayed raw bytes as Latin-N characters, so non-ASCII text in > unibyte strings needed a unibyte buffer to display it as expected. > But that feature is no longer available, as raw bytes are always > displayed as octal escapes. Sounds plausible. > The question that bothers me is can a unibyte string inserted or > printed into a multibyte buffer be converted to something that will > display as a non-ASCII character, not as an octal escape. Surely we can arrange for the latter. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 11 13:04:46 2018 Received: (at 30405) by debbugs.gnu.org; 11 Feb 2018 18:04:46 +0000 Received: from localhost ([127.0.0.1]:38586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekvzZ-0005JP-R3 for submit@debbugs.gnu.org; Sun, 11 Feb 2018 13:04:46 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekvzY-0005JC-5g for 30405@debbugs.gnu.org; Sun, 11 Feb 2018 13:04:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekvzQ-0000cZ-Hn for 30405@debbugs.gnu.org; Sun, 11 Feb 2018 13:04:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekvzP-0000c3-Ps; Sun, 11 Feb 2018 13:04:36 -0500 Received: from [176.228.60.248] (port=1418 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ekvzN-0000g7-NG; Sun, 11 Feb 2018 13:04:34 -0500 Date: Sun, 11 Feb 2018 20:04:19 +0200 Message-Id: <8337271jz0.fsf@gnu.org> From: Eli Zaretskii To: Paul Eggert In-reply-to: (message from Paul Eggert on Sun, 11 Feb 2018 09:26:41 -0800) Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message 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> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30405 Cc: rgm@gnu.org, 30405@debbugs.gnu.org, gazally@runbox.com, npostavs@users.sourceforge.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: npostavs@users.sourceforge.net, rgm@gnu.org, gazally@runbox.com, > 30405@debbugs.gnu.org > From: Paul Eggert > Date: Sun, 11 Feb 2018 09:26:41 -0800 > > > The question that bothers me is can a unibyte string inserted or > > printed into a multibyte buffer be converted to something that will > > display as a non-ASCII character, not as an octal escape. > > Surely we can arrange for the latter. I think we already do. At least I couldn't find a way to display a raw byte as a non-ASCII Latin character in a unibyte buffer. If no one can, we could probably remove that unibyte/multibyte magic in echo area. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 11 13:16:42 2018 Received: (at 30405) by debbugs.gnu.org; 11 Feb 2018 18:16:42 +0000 Received: from localhost ([127.0.0.1]:38602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekwB8-0005b1-Ip for submit@debbugs.gnu.org; Sun, 11 Feb 2018 13:16:42 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekwB7-0005ap-6e for 30405@debbugs.gnu.org; Sun, 11 Feb 2018 13:16:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekwB1-00065l-6K for 30405@debbugs.gnu.org; Sun, 11 Feb 2018 13:16:36 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekwAu-0005zI-Rr; Sun, 11 Feb 2018 13:16:28 -0500 Received: from [176.228.60.248] (port=1427 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ekwAu-000454-4W; Sun, 11 Feb 2018 13:16:28 -0500 Date: Sun, 11 Feb 2018 20:16:14 +0200 Message-Id: <83zi4fz91t.fsf@gnu.org> From: Eli Zaretskii To: eggert@cs.ucla.edu In-reply-to: <8337271jz0.fsf@gnu.org> (message from Eli Zaretskii on Sun, 11 Feb 2018 20:04:19 +0200) Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message 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> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30405 Cc: gazally@runbox.com, 30405@debbugs.gnu.org, npostavs@users.sourceforge.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sun, 11 Feb 2018 20:04:19 +0200 > From: Eli Zaretskii > Cc: npostavs@users.sourceforge.net, 30405@debbugs.gnu.org, gazally@runbox.com > > > Cc: npostavs@users.sourceforge.net, rgm@gnu.org, gazally@runbox.com, > > 30405@debbugs.gnu.org > > From: Paul Eggert > > Date: Sun, 11 Feb 2018 09:26:41 -0800 > > > > > The question that bothers me is can a unibyte string inserted or > > > printed into a multibyte buffer be converted to something that will > > > display as a non-ASCII character, not as an octal escape. > > > > Surely we can arrange for the latter. > > I think we already do. At least I couldn't find a way to display a > raw byte as a non-ASCII Latin character in a unibyte buffer. If no > one can, we could probably remove that unibyte/multibyte magic in echo > area. Actually, I can: emacs -Q M-x set-variable RET unibyte-display-via-language-environment RET t RET M-: (set-buffer-multibyte nil) RET C-q 0242 SPC This should display ¢. So I think we can get rid of making echo-area buffers unibyte, as long as we make sure that variable is nil (which it is by default). From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 11 15:36:59 2018 Received: (at 30405) by debbugs.gnu.org; 11 Feb 2018 20:36:59 +0000 Received: from localhost ([127.0.0.1]:38634 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekyMr-0000EN-EW for submit@debbugs.gnu.org; Sun, 11 Feb 2018 15:36:59 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:54370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekyMp-0000EA-Vb for 30405@debbugs.gnu.org; Sun, 11 Feb 2018 15:36:56 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id A6FE5160156; Sun, 11 Feb 2018 12:36:49 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id UsvO9djfMwgl; Sun, 11 Feb 2018 12:36:48 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 96500160186; Sun, 11 Feb 2018 12:36:48 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id H9TcwaJMwOGJ; Sun, 11 Feb 2018 12:36:48 -0800 (PST) Received: from [192.168.1.9] (unknown [47.154.30.119]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 6AAF9160156; Sun, 11 Feb 2018 12:36:48 -0800 (PST) Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message To: Eli Zaretskii 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> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <3db2fa4f-fe6b-a5db-599e-b0bcd0b8511b@cs.ucla.edu> Date: Sun, 11 Feb 2018 12:36:47 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <83zi4fz91t.fsf@gnu.org> Content-Type: multipart/mixed; boundary="------------88729A014A09AAC29442035A" Content-Language: en-US X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 30405 Cc: gazally@runbox.com, 30405@debbugs.gnu.org, npostavs@users.sourceforge.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This is a multi-part message in MIME format. --------------88729A014A09AAC29442035A Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Eli Zaretskii wrote: > emacs -Q > M-x set-variable RET unibyte-display-via-language-environment RET t = RET > M-: (set-buffer-multibyte nil) RET > C-q 0242 SPC >=20 > This should display =C2=A2. >=20 > So I think we can get rid of making echo-area buffers unibyte, as long > as we make sure that variable is nil (which it is by default). Getting rid of it sounds good, but why do we need to worry about=20 unibyte-display-via-language-environment? For me, the attached patch does= =20 display that test as =C2=A2, and it fixes the other test cases reported s= o far in=20 Bug#30405. And yet this patch works without worrying about=20 unibyte-display-via-language-environment, even if I run Emacs in a unibyt= e=20 locale like en_US.iso885915 (a practice that's no longer common). For what it's worth, I'm testing on Ubuntu 16.04 and on Fedora 27, built=20 --without-imagicmagick so that I can reproduce the original problem. --------------88729A014A09AAC29442035A Content-Type: text/x-patch; name="0001-Echo-area-multibyteness-is-independent-of-buffer.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename*0="0001-Echo-area-multibyteness-is-independent-of-buffer.patch" =46rom 1ba9c7c8a0fe8c2ec6866a1dfb6b8c340d7d2139 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 11 Feb 2018 12:26:43 -0800 Subject: [PATCH] Echo area multibyteness is independent of buffer This fixes a problem where ImageMagick-related diagnostics were mangled (Bug#30405). * src/print.c (PRINTPREPARE, printchar, strout): * src/xdisp.c (setup_echo_area_for_printing, set_message_1): Don't mess with the multibyteness of the echo buffer. * src/xdisp.c (message_enable_multibyte): Remove. All uses removed. --- src/lisp.h | 2 +- src/print.c | 17 +++++------------ src/xdisp.c | 22 ++-------------------- 3 files changed, 8 insertions(+), 33 deletions(-) diff --git a/src/lisp.h b/src/lisp.h index a7f0a1d..2c5aaa0 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -3613,7 +3613,7 @@ extern Lisp_Object echo_area_buffer[2]; extern void add_to_log (char const *, ...); extern void vadd_to_log (char const *, va_list); extern void check_message_stack (void); -extern void setup_echo_area_for_printing (bool); +extern void setup_echo_area_for_printing (void); extern bool push_message (void); extern void pop_message_unwind (void); extern Lisp_Object restore_message_unwind (Lisp_Object); diff --git a/src/print.c b/src/print.c index b3c0f6f..fbf51aa 100644 --- a/src/print.c +++ b/src/print.c @@ -98,8 +98,6 @@ bool print_output_debug_flag EXTERNALLY_VISIBLE =3D 1; ptrdiff_t old_point_byte =3D -1, start_point_byte =3D -1; \ ptrdiff_t specpdl_count =3D SPECPDL_INDEX (); \ bool free_print_buffer =3D 0; \ - bool multibyte \ - =3D !NILP (BVAR (current_buffer, enable_multibyte_characters)); \ Lisp_Object original =3D printcharfun; \ if (NILP (printcharfun)) printcharfun =3D Qt; \ if (BUFFERP (printcharfun)) \ @@ -154,7 +152,7 @@ bool print_output_debug_flag EXTERNALLY_VISIBLE =3D 1= ; print_buffer_pos_byte =3D 0; \ } \ if (EQ (printcharfun, Qt) && ! noninteractive) \ - setup_echo_area_for_printing (multibyte); + setup_echo_area_for_printing (); =20 #define PRINTFINISH \ if (NILP (printcharfun)) \ @@ -303,12 +301,9 @@ printchar (unsigned int ch, Lisp_Object fun) } else { - bool multibyte_p - =3D !NILP (BVAR (current_buffer, enable_multibyte_characters)); - - setup_echo_area_for_printing (multibyte_p); + setup_echo_area_for_printing (); insert_char (ch); - message_dolog ((char *) str, len, 0, multibyte_p); + message_dolog ((char *) str, len, 0, true); } } } @@ -360,11 +355,9 @@ strout (const char *ptr, ptrdiff_t size, ptrdiff_t s= ize_byte, here, that's the reason we don't call printchar to do the job. */ int i; - bool multibyte_p - =3D !NILP (BVAR (current_buffer, enable_multibyte_characters)); =20 - setup_echo_area_for_printing (multibyte_p); - message_dolog (ptr, size_byte, 0, multibyte_p); + setup_echo_area_for_printing (); + message_dolog (ptr, size_byte, 0, true); =20 if (size =3D=3D size_byte) { diff --git a/src/xdisp.c b/src/xdisp.c index 7c90d32..236a4ae 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -445,11 +445,6 @@ Lisp_Object echo_area_window; =20 static Lisp_Object Vmessage_stack; =20 -/* True means multibyte characters were enabled when the echo area - message was specified. */ - -static bool message_enable_multibyte; - /* At each redisplay cycle, we should refresh everything there is to ref= resh. To do that efficiently, we use many optimizations that try to make su= re we don't waste too much time updating things that haven't changed. @@ -10947,11 +10942,10 @@ unwind_with_echo_area_buffer (Lisp_Object vecto= r) } =20 =20 -/* Set up the echo area for use by print functions. MULTIBYTE_P - means we will print multibyte. */ +/* Set up the echo area for use by print functions. */ =20 void -setup_echo_area_for_printing (bool multibyte_p) +setup_echo_area_for_printing (void) { /* If we can't find an echo area any more, exit. */ if (! FRAME_LIVE_P (XFRAME (selected_frame))) @@ -10982,11 +10976,6 @@ setup_echo_area_for_printing (bool multibyte_p) } TEMP_SET_PT_BOTH (BEG, BEG_BYTE); =20 - /* Set up the buffer for the multibyteness we need. */ - if (multibyte_p - !=3D !NILP (BVAR (current_buffer, enable_multibyte_characters))) - Fset_buffer_multibyte (multibyte_p ? Qt : Qnil); - /* Raise the frame containing the echo area. */ if (minibuffer_auto_raise) { @@ -11409,8 +11398,6 @@ set_message (Lisp_Object string) { eassert (STRINGP (string)); =20 - message_enable_multibyte =3D STRING_MULTIBYTE (string); - with_echo_area_buffer (0, -1, set_message_1, 0, string); message_buf_print =3D false; help_echo_showing_p =3D false; @@ -11431,11 +11418,6 @@ set_message_1 (ptrdiff_t a1, Lisp_Object string)= { eassert (STRINGP (string)); =20 - /* Change multibyteness of the echo buffer appropriately. */ - if (message_enable_multibyte - !=3D !NILP (BVAR (current_buffer, enable_multibyte_characters))) - Fset_buffer_multibyte (message_enable_multibyte ? Qt : Qnil); - bset_truncate_lines (current_buffer, message_truncate_lines ? Qt : Qni= l); if (!NILP (BVAR (current_buffer, bidi_display_reordering))) bset_bidi_paragraph_direction (current_buffer, Qleft_to_right); --=20 2.7.4 --------------88729A014A09AAC29442035A-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 12 13:21:49 2018 Received: (at 30405) by debbugs.gnu.org; 12 Feb 2018 18:21:49 +0000 Received: from localhost ([127.0.0.1]:39997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elIjd-0005NC-K6 for submit@debbugs.gnu.org; Mon, 12 Feb 2018 13:21:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elIjb-0005Mz-4a for 30405@debbugs.gnu.org; Mon, 12 Feb 2018 13:21:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elIjV-0002Nu-3V for 30405@debbugs.gnu.org; Mon, 12 Feb 2018 13:21:42 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:32819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elIjN-0002Ed-So; Mon, 12 Feb 2018 13:21:33 -0500 Received: from [176.228.60.248] (port=2877 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1elIjN-00081U-CJ; Mon, 12 Feb 2018 13:21:33 -0500 Date: Mon, 12 Feb 2018 20:21:21 +0200 Message-Id: <83a7weyspq.fsf@gnu.org> From: Eli Zaretskii To: Paul Eggert In-reply-to: <3db2fa4f-fe6b-a5db-599e-b0bcd0b8511b@cs.ucla.edu> (message from Paul Eggert on Sun, 11 Feb 2018 12:36:47 -0800) Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message 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> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30405 Cc: gazally@runbox.com, 30405@debbugs.gnu.org, npostavs@users.sourceforge.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: npostavs@users.sourceforge.net, 30405@debbugs.gnu.org, gazally@runbox.com > From: Paul Eggert > Date: Sun, 11 Feb 2018 12:36:47 -0800 > > > emacs -Q > > M-x set-variable RET unibyte-display-via-language-environment RET t RET > > M-: (set-buffer-multibyte nil) RET > > C-q 0242 SPC > > > > This should display ¢. > > > > So I think we can get rid of making echo-area buffers unibyte, as long > > as we make sure that variable is nil (which it is by default). > > Getting rid of it sounds good, but why do we need to worry about > unibyte-display-via-language-environment? Because with your patch the following doesn't work as it did before: emacs -Q M-x set-variable RET unibyte-display-via-language-environment RET t RET M-: (set-buffer-multibyte nil) RET (defun foo () (interactive) (message "cannot ¢")) C-j M-x foo RET (To insert ¢, type "C-q 0242".) And the same if you replace 'message' with 'error'. With your patch, I see an octal escape, not ¢, i.e. the effect of unibyte-display-via-language-environment is lost. > And yet this patch works without worrying about > unibyte-display-via-language-environment, even if I run Emacs in a unibyte > locale like en_US.iso885915 (a practice that's no longer common). Whether the locale is unibyte or not is immaterial, because we use multibyte representation for Latin-N characters as well. What is important is to be in a unibyte buffer and display a message with non-ASCII bytes, while unibyte-display-via-language-environment is non-nil. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 12 14:34:22 2018 Received: (at 30405) by debbugs.gnu.org; 12 Feb 2018 19:34:22 +0000 Received: from localhost ([127.0.0.1]:40042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elJrq-00073X-7e for submit@debbugs.gnu.org; Mon, 12 Feb 2018 14:34:22 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:49312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elJro-00073L-Q3 for 30405@debbugs.gnu.org; Mon, 12 Feb 2018 14:34:21 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id AC6E3161063; Mon, 12 Feb 2018 11:34:14 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 15GFiv7QpFBu; Mon, 12 Feb 2018 11:34:13 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 85093161248; Mon, 12 Feb 2018 11:34:13 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id tg3Zq7bIxFyE; Mon, 12 Feb 2018 11:34:13 -0800 (PST) Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 6ADD8161063; Mon, 12 Feb 2018 11:34:13 -0800 (PST) Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message To: Eli Zaretskii 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> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <9c0033de-9afc-13f9-57cd-7970eb3cb07c@cs.ucla.edu> Date: Mon, 12 Feb 2018 11:34:13 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <83a7weyspq.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 30405 Cc: gazally@runbox.com, 30405@debbugs.gnu.org, npostavs@users.sourceforge.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) On 02/12/2018 10:21 AM, Eli Zaretskii wrote: >> Getting rid of it sounds good, but why do we need to worry about=20 >> unibyte-display-via-language-environment?=20 > Because with your patch the following doesn't work as it did before:=20 > emacs -Q M-x set-variable RET unibyte-display-via-language-environment=20 > RET t RET M-: (set-buffer-multibyte nil) RET (defun foo ()=20 > (interactive) (message "cannot =C2=A2")) C-j M-x foo RET (To insert =C2= =A2, type=20 > "C-q 0242".) And the same if you replace 'message' with 'error'. With=20 > your patch, I see an octal escape, not =C2=A2, i.e. the effect of=20 > unibyte-display-via-language-environment is lost.=20 That's OK, as the effect is intended for unibyte buffers and strings=20 which are intended for binary data, whereas the echo area is intended to=20 be text. That is, you're correct that there is a change in behavior=20 here; the change is an improvement. The example that you gave is more clearly formulated as follows: =C2=A0 emacs -Q =C2=A0 M-x set-variable RET unibyte-display-via-language-environment RET= t RET =C2=A0 (defun foo () =C2=A0=C2=A0=C2=A0 (interactive) =C2=A0=C2=A0=C2=A0 (message "cannot \242")) C-j =C2=A0 M-x foo RET because the message deliberately contains the binary byte with octal=20 value 242. It's more appropriate for this example to display "\242" in=20 the echo area than to display "=C2=A2", because the echo area is text, no= t=20 binary data. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 12 14:59:30 2018 Received: (at 30405) by debbugs.gnu.org; 12 Feb 2018 19:59:30 +0000 Received: from localhost ([127.0.0.1]:40075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elKGA-0007dG-AL for submit@debbugs.gnu.org; Mon, 12 Feb 2018 14:59:30 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elKG7-0007d1-5c for 30405@debbugs.gnu.org; Mon, 12 Feb 2018 14:59:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elKG0-0003Xe-Qu for 30405@debbugs.gnu.org; Mon, 12 Feb 2018 14:59:21 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elKFu-0003OJ-JG; Mon, 12 Feb 2018 14:59:14 -0500 Received: from [176.228.60.248] (port=3063 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1elKFt-0005Tq-G2; Mon, 12 Feb 2018 14:59:14 -0500 Date: Mon, 12 Feb 2018 21:59:00 +0200 Message-Id: <836072yo6z.fsf@gnu.org> From: Eli Zaretskii To: Paul Eggert In-reply-to: <9c0033de-9afc-13f9-57cd-7970eb3cb07c@cs.ucla.edu> (message from Paul Eggert on Mon, 12 Feb 2018 11:34:13 -0800) Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message 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> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30405 Cc: gazally@runbox.com, 30405@debbugs.gnu.org, npostavs@users.sourceforge.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: npostavs@users.sourceforge.net, 30405@debbugs.gnu.org, gazally@runbox.com > From: Paul Eggert > Date: Mon, 12 Feb 2018 11:34:13 -0800 > >   emacs -Q >   M-x set-variable RET unibyte-display-via-language-environment RET t RET >   (defun foo () >     (interactive) >     (message "cannot \242")) C-j >   M-x foo RET > > because the message deliberately contains the binary byte with octal > value 242. It's more appropriate for this example to display "\242" in > the echo area than to display "¢", because the echo area is text, not > binary data. I disagree, because 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 the whole raison d'être of that feature. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 12 15:32:06 2018 Received: (at 30405) by debbugs.gnu.org; 12 Feb 2018 20:32:06 +0000 Received: from localhost ([127.0.0.1]:40082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elKlh-0008Ng-Up for submit@debbugs.gnu.org; Mon, 12 Feb 2018 15:32:06 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:40964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elKle-0008N9-RB for 30405@debbugs.gnu.org; Mon, 12 Feb 2018 15:32:04 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 794931600F3; Mon, 12 Feb 2018 12:31:56 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id nLtDWl2lOw5z; Mon, 12 Feb 2018 12:31:55 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B87F5160156; Mon, 12 Feb 2018 12:31:55 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id mpIRcQ-HEHdi; Mon, 12 Feb 2018 12:31:55 -0800 (PST) Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 9EB771600F3; Mon, 12 Feb 2018 12:31:55 -0800 (PST) Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message To: Eli Zaretskii 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> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <78c6e835-d516-3e40-37d1-2486ed304019@cs.ucla.edu> Date: Mon, 12 Feb 2018 12:31:55 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <836072yo6z.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 30405 Cc: gazally@runbox.com, 30405@debbugs.gnu.org, npostavs@users.sourceforge.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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,=20 on current emacs-26: =C2=A0=C2=A0 emacs -Q =C2=A0=C2=A0 M-x set-variable RET unibyte-display-via-language-environme= nt RET t RET =C2=A0=C2=A0 (defun foo () =C2=A0=C2=A0=C2=A0=C2=A0 (interactive) =C2=A0=C2=A0=C2=A0=C2=A0 (message "cannot \xA2\u00A2")) C-j =C2=A0=C2=A0 M-x foo RET This displays "\242=C2=A2", not "=C2=A2=C2=A2". No doubt this isn't documented as well as it should be, but from looking=20 at the source code get_next_display_element it's clear that=20 unibyte-display-via-language-environment does not simply display every=20 raw byte as a Latin-1 character; instead, the code also takes context=20 into account, and if the context is multibyte then=20 unibyte-display-via-language-environment is ignored. Since the echo=20 area's context is text and not binary data, the display of raw bytes in=20 the echo area should be unaffected by=20 unibyte-display-via-language-environment. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 13 00:03:44 2018 Received: (at 30405) by debbugs.gnu.org; 13 Feb 2018 05:03:44 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 Date: Tue, 13 Feb 2018 07:03:19 +0200 Message-Id: <834lmlzdk8.fsf@gnu.org> From: Eli Zaretskii To: Paul Eggert In-reply-to: <78c6e835-d516-3e40-37d1-2486ed304019@cs.ucla.edu> (message from Paul Eggert on Mon, 12 Feb 2018 12:31:55 -0800) Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message 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> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30405 Cc: gazally@runbox.com, 30405@debbugs.gnu.org, npostavs@users.sourceforge.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > 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. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 13 12:43:46 2018 Received: (at 30405) by debbugs.gnu.org; 13 Feb 2018 17:43:46 +0000 Received: from localhost ([127.0.0.1]:41715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elecL-0005hZ-Q1 for submit@debbugs.gnu.org; Tue, 13 Feb 2018 12:43:46 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:43032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elecI-0005hJ-N7 for 30405@debbugs.gnu.org; Tue, 13 Feb 2018 12:43:43 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 817D1160D39; Tue, 13 Feb 2018 09:43:35 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Tt_Lk7G5bey7; Tue, 13 Feb 2018 09:43:34 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id BAC12160E18; Tue, 13 Feb 2018 09:43:34 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id RDOPVScBPiQo; Tue, 13 Feb 2018 09:43:34 -0800 (PST) Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 9CF94160D39; Tue, 13 Feb 2018 09:43:34 -0800 (PST) Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message To: Eli Zaretskii 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> <834lmlzdk8.fsf@gnu.org> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: Date: Tue, 13 Feb 2018 09:43:34 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <834lmlzdk8.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 30405 Cc: gazally@runbox.com, 30405@debbugs.gnu.org, npostavs@users.sourceforge.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) On 02/12/2018 09:03 PM, Eli Zaretskii wrote: > In this scenario, you are not supposed to do that, you > are supposed to use only unibyte strings. In that case the user should set the echo area to be unibyte, and if=20 there's not a convenient way to do that then we should supply one. In=20 the meantime Emacs is messed up, since it just guesses whether the echo=20 area should be unibyte and (as we've seen) it guesses wrong in common cas= es. > Also, did you try the variant with 'error' instead of 'message' (in > which case you need to make*scratch* unibyte before invoking 'foo'. In that setup in the emacs-26 branch, (error "\xA2\u00A2") displays "=C2=A2= =C2=A2"=20 in the echo area and "\242=C2=A2" in *Backtrace* and "\300\242\302\242" i= n=20 *Messages*, which is bogus. The 'message' variant displays "\242=C2=A2" i= n=20 all three places; this is much better behavior. >> 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. The abovementioned test case establishes that the variable does not in=20 fact always cause Emacs to display raw bytes as readable text. The only=20 question is whether the documentation is wrong, or the code (or both=20 :-). I've given a consistent interpretation that the intent of the=20 variable is to display raw bytes as text when in a unibyte context=20 (which the echo area is not). I haven't seen an alternative consistent=20 interpretation that's corresponds to the behavior Emacs currently=20 exhibits (i.e., the sort of behavior that elicited this bug report). From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 13 14:58:57 2018 Received: (at 30405) by debbugs.gnu.org; 13 Feb 2018 19:58:57 +0000 Received: from localhost ([127.0.0.1]:41834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elgjA-0000Oe-Ul for submit@debbugs.gnu.org; Tue, 13 Feb 2018 14:58:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elgj9-0000OS-Rl for 30405@debbugs.gnu.org; Tue, 13 Feb 2018 14:58:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elgj3-0004rR-QE for 30405@debbugs.gnu.org; Tue, 13 Feb 2018 14:58:50 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elgix-0004aZ-7Y; Tue, 13 Feb 2018 14:58:43 -0500 Received: from [176.228.60.248] (port=4239 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1elgiv-0000jh-V9; Tue, 13 Feb 2018 14:58:42 -0500 Date: Tue, 13 Feb 2018 21:58:30 +0200 Message-Id: <83k1vgy849.fsf@gnu.org> From: Eli Zaretskii To: Paul Eggert In-reply-to: (message from Paul Eggert on Tue, 13 Feb 2018 09:43:34 -0800) Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message 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> <834lmlzdk8.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30405 Cc: gazally@runbox.com, 30405@debbugs.gnu.org, npostavs@users.sourceforge.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: npostavs@users.sourceforge.net, 30405@debbugs.gnu.org, gazally@runbox.com > From: Paul Eggert > Date: Tue, 13 Feb 2018 09:43:34 -0800 > > > That variable's purpose is to display raw bytes as readable text, so I > > definitely disagree in this specific use case. > > The abovementioned test case establishes that the variable does not in > fact always cause Emacs to display raw bytes as readable text. The only > question is whether the documentation is wrong, or the code (or both > :-). I've given a consistent interpretation that the intent of the > variable is to display raw bytes as text when in a unibyte context > (which the echo area is not). I haven't seen an alternative consistent > interpretation that's corresponds to the behavior Emacs currently > exhibits (i.e., the sort of behavior that elicited this bug report). That's your POV, but not mine. I'm not prepared to lose this variable, given the dozen line it takes to support it. Fixing the original problem without losing the effect of this variable is easy, so I see no reason to continue arguing. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 17 07:29:40 2018 Received: (at 30405-done) by debbugs.gnu.org; 17 Feb 2018 12:29:40 +0000 Received: from localhost ([127.0.0.1]:47564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en1cZ-0000rb-VZ for submit@debbugs.gnu.org; Sat, 17 Feb 2018 07:29:40 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en1cX-0000rL-To for 30405-done@debbugs.gnu.org; Sat, 17 Feb 2018 07:29:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1en1cR-0001oh-WE for 30405-done@debbugs.gnu.org; Sat, 17 Feb 2018 07:29:32 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1en1cN-0001ih-O6; Sat, 17 Feb 2018 07:29:27 -0500 Received: from [176.228.60.248] (port=3619 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1en1cN-0007vP-4R; Sat, 17 Feb 2018 07:29:27 -0500 Date: Sat, 17 Feb 2018 14:29:29 +0200 Message-Id: <83zi47bxzq.fsf@gnu.org> From: Eli Zaretskii To: eggert@cs.ucla.edu, gazally@runbox.com In-reply-to: <83k1vgy849.fsf@gnu.org> (message from Eli Zaretskii on Tue, 13 Feb 2018 21:58:30 +0200) Subject: Re: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message 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> <834lmlzdk8.fsf@gnu.org> <83k1vgy849.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30405-done Cc: npostavs@users.sourceforge.net, 30405-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Tue, 13 Feb 2018 21:58:30 +0200 > From: Eli Zaretskii > Cc: gazally@runbox.com, 30405@debbugs.gnu.org, npostavs@users.sourceforge.net > > > Cc: npostavs@users.sourceforge.net, 30405@debbugs.gnu.org, gazally@runbox.com > > Fixing the original problem without losing the effect of this > variable is easy Fixed. I'm marking this bug done now. From unknown Tue Jun 17 20:17:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 18 Mar 2018 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator