all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: gazally@runbox.com, 30405@debbugs.gnu.org,
	npostavs@users.sourceforge.net
Subject: bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message
Date: Mon, 12 Feb 2018 20:21:21 +0200	[thread overview]
Message-ID: <83a7weyspq.fsf@gnu.org> (raw)
In-Reply-To: <3db2fa4f-fe6b-a5db-599e-b0bcd0b8511b@cs.ucla.edu> (message from Paul Eggert on Sun, 11 Feb 2018 12:36:47 -0800)

> Cc: npostavs@users.sourceforge.net, 30405@debbugs.gnu.org, gazally@runbox.com
> From: Paul Eggert <eggert@cs.ucla.edu>
> 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.





  reply	other threads:[~2018-02-12 18:21 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-09 21:13 bug#30405: 26.0.91; Incorrect apostrophe translation in ImageMagick error message Gemini Lasswell
2018-02-09 23:04 ` Glenn Morris
2018-02-10  0:10   ` Glenn Morris
2018-02-10  0:29     ` Glenn Morris
2018-02-10  8:02       ` Eli Zaretskii
2018-02-10 23:34       ` Glenn Morris
2018-02-11  3:38         ` Eli Zaretskii
2018-02-11  3:41           ` Eli Zaretskii
2018-02-11  5:08             ` Eli Zaretskii
2018-02-10  3:07   ` Noam Postavsky
2018-02-10  8:39     ` Eli Zaretskii
2018-02-10 14:15       ` Andreas Schwab
2018-02-10 16:43         ` Eli Zaretskii
2018-02-10 18:57       ` Paul Eggert
2018-02-10 21:24         ` Eli Zaretskii
2018-02-11 17:26           ` Paul Eggert
2018-02-11 18:04             ` Eli Zaretskii
2018-02-11 18:16               ` Eli Zaretskii
2018-02-11 20:36                 ` Paul Eggert
2018-02-12 18:21                   ` Eli Zaretskii [this message]
2018-02-12 19:34                     ` Paul Eggert
2018-02-12 19:59                       ` Eli Zaretskii
2018-02-12 20:31                         ` Paul Eggert
2018-02-13  5:03                           ` Eli Zaretskii
2018-02-13 17:43                             ` Paul Eggert
2018-02-13 19:58                               ` Eli Zaretskii
2018-02-17 12:29                                 ` Eli Zaretskii
2018-02-10 21:30         ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83a7weyspq.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=30405@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=gazally@runbox.com \
    --cc=npostavs@users.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.