aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorPaul Eggert2015-05-31 23:52:09 -0700
committerPaul Eggert2015-05-31 23:53:45 -0700
commit2c656f7deb3b192a5063151368782c2715e81051 (patch)
tree94f93fae541ca21c126c53162242ae8403b8c9f3 /src/buffer.c
parent467af178f53798e4cd102e04eb2990121eb655df (diff)
downloademacs-2c656f7deb3b192a5063151368782c2715e81051.tar.gz
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/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 13843a2ac4d..0b98431eb0e 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5285,7 +5285,7 @@ init_buffer (int initialized)
5285 pwd = get_current_dir_name (); 5285 pwd = get_current_dir_name ();
5286 5286
5287 if (!pwd) 5287 if (!pwd)
5288 fatal ("`get_current_dir_name' failed: %s\n", strerror (errno)); 5288 fatal ("get_current_dir_name: %s\n", strerror (errno));
5289 5289
5290 /* Maybe this should really use some standard subroutine 5290 /* Maybe this should really use some standard subroutine
5291 whose definition is filename syntax dependent. */ 5291 whose definition is filename syntax dependent. */
@@ -5295,7 +5295,7 @@ init_buffer (int initialized)
5295 /* Grow buffer to add directory separator and '\0'. */ 5295 /* Grow buffer to add directory separator and '\0'. */
5296 pwd = realloc (pwd, len + 2); 5296 pwd = realloc (pwd, len + 2);
5297 if (!pwd) 5297 if (!pwd)
5298 fatal ("`get_current_dir_name' failed: %s\n", strerror (errno)); 5298 fatal ("get_current_dir_name: %s\n", strerror (errno));
5299 pwd[len] = DIRECTORY_SEP; 5299 pwd[len] = DIRECTORY_SEP;
5300 pwd[len + 1] = '\0'; 5300 pwd[len + 1] = '\0';
5301 len++; 5301 len++;