diff options
| author | Paul Eggert | 2015-05-31 20:04:05 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-05-31 20:04:43 -0700 |
| commit | 467af178f53798e4cd102e04eb2990121eb655df (patch) | |
| tree | 1e6e2cec1eb87963ae796289ef9a1afdd060a668 /src/dispnew.c | |
| parent | 21d13bce38c2160bf21b3428cd8e56daadcf4698 (diff) | |
| download | emacs-467af178f53798e4cd102e04eb2990121eb655df.tar.gz emacs-467af178f53798e4cd102e04eb2990121eb655df.zip | |
Treat batch stdout/stderr like standard display
Calls like (print FOO) could generate improperly encoded or
hard-to-read output if FOO contains characters outside the system
locale. Fix this by treating batch stdout and stderr like
interactive standard display, when it comes to transliterating and
encoding characters (Bug#20545).
* doc/emacs/mule.texi (Communication Coding):
* doc/lispref/display.texi (Active Display Table):
* doc/lispref/nonascii.texi (Locales):
* etc/NEWS:
* src/coding.c (syms_of_coding):
* src/dispnew.c (syms_of_display):
Document this.
* src/print.c: Include disptab.h.
(printchar_to_stream): New function, with much of the guts of the
old Fexternal_debugging_output, except this one also uses the
standard display table.
(printchar, strout, Fexternal_debugging_output): Use it.
Diffstat (limited to 'src/dispnew.c')
| -rw-r--r-- | src/dispnew.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 693dd49825c..7e7afa71d20 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -6245,6 +6245,7 @@ Each element can be: | |||
| 6245 | 6245 | ||
| 6246 | DEFVAR_LISP ("standard-display-table", Vstandard_display_table, | 6246 | DEFVAR_LISP ("standard-display-table", Vstandard_display_table, |
| 6247 | doc: /* Display table to use for buffers that specify none. | 6247 | doc: /* Display table to use for buffers that specify none. |
| 6248 | It is also used for standard output and error streams. | ||
| 6248 | See `buffer-display-table' for more information. */); | 6249 | See `buffer-display-table' for more information. */); |
| 6249 | Vstandard_display_table = Qnil; | 6250 | Vstandard_display_table = Qnil; |
| 6250 | 6251 | ||