diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2015-05-31 23:52:09 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2015-05-31 23:53:45 -0700 |
commit | 2c656f7deb3b192a5063151368782c2715e81051 (patch) | |
tree | 94f93fae541ca21c126c53162242ae8403b8c9f3 /src/xfns.c | |
parent | 467af178f53798e4cd102e04eb2990121eb655df (diff) | |
download | emacs-2c656f7deb3b192a5063151368782c2715e81051.tar.gz |
Avoid grave accent quoting in stderr diagnostics
A few Emacs diagnostics go directly to stderr, and so can't easily
contain curved quotes (as non-UTF-8 locales might mishandle them).
Instead of bothering to add support for this rarity, reword the
diagnostics so that they don't use grave accent to quote.
* src/alloc.c (mark_memory): Fix comment.
* src/buffer.c (init_buffer):
* src/dispnew.c (init_display):
* src/emacs.c (main, sort_args):
* src/lread.c (dir_warning):
* src/term.c (init_tty):
* src/unexmacosx.c (unexec):
* src/xfns.c (select_visual):
* src/xterm.c (cvt_string_to_pixel, x_io_error_quitter):
Reword stderr diagnostics to avoid quoting `like this'.
* src/unexmacosx.c: Include errno.h.
* src/xfns.c (select_visual): Encode value for locale.
Diffstat (limited to 'src/xfns.c')
-rw-r--r-- | src/xfns.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c index 16a568e9153..634881d0a66 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -4519,7 +4519,8 @@ select_visual (struct x_display_info *dpyinfo) if (class == -1 || !XMatchVisualInfo (dpy, XScreenNumberOfScreen (screen), dpyinfo->n_planes, class, &vinfo)) - fatal ("Invalid visual specification `%s'", SDATA (value)); + fatal ("Invalid visual specification '%s'", + SSDATA (ENCODE_SYSTEM (value))); dpyinfo->visual = vinfo.visual; } |