summaryrefslogtreecommitdiff
path: root/src/emacs.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-05-31 23:52:09 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2015-05-31 23:53:45 -0700
commit2c656f7deb3b192a5063151368782c2715e81051 (patch)
tree94f93fae541ca21c126c53162242ae8403b8c9f3 /src/emacs.c
parent467af178f53798e4cd102e04eb2990121eb655df (diff)
downloademacs-2c656f7deb3b192a5063151368782c2715e81051.tar.gz
emacs-2c656f7deb3b192a5063151368782c2715e81051.tar.bz2
emacs-2c656f7deb3b192a5063151368782c2715e81051.zip
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/emacs.c')
-rw-r--r--src/emacs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emacs.c b/src/emacs.c
index bba68068a83..8396f5d4e45 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -776,12 +776,12 @@ main (int argc, char **argv)
tem2 = Fsymbol_value (intern_c_string ("emacs-copyright"));
if (!STRINGP (tem))
{
- fprintf (stderr, "Invalid value of `emacs-version'\n");
+ fprintf (stderr, "Invalid value of 'emacs-version'\n");
exit (1);
}
if (!STRINGP (tem2))
{
- fprintf (stderr, "Invalid value of `emacs-copyright'\n");
+ fprintf (stderr, "Invalid value of 'emacs-copyright'\n");
exit (1);
}
else
@@ -1796,7 +1796,7 @@ sort_args (int argc, char **argv)
options[from] = standard_args[i].nargs;
priority[from] = standard_args[i].priority;
if (from + standard_args[i].nargs >= argc)
- fatal ("Option `%s' requires an argument\n", argv[from]);
+ fatal ("Option '%s' requires an argument\n", argv[from]);
from += standard_args[i].nargs;
goto done;
}
@@ -1833,7 +1833,7 @@ sort_args (int argc, char **argv)
if (equals != 0)
options[from] = 0;
if (from + options[from] >= argc)
- fatal ("Option `%s' requires an argument\n", argv[from]);
+ fatal ("Option '%s' requires an argument\n", argv[from]);
from += options[from];
}
/* FIXME When match < 0, shouldn't there be some error,