]> code.delx.au - gnu-emacs/commit
Obey coding-system-for-write when writing stdout/stderr in batch
authorEli Zaretskii <eliz@gnu.org>
Wed, 6 Jan 2016 18:25:45 +0000 (20:25 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 6 Jan 2016 18:25:45 +0000 (20:25 +0200)
commitc63246628461f748d66a8a07ba008de2e00fd33a
tree6a58d3db5f15daf1c9566cb91c4c2a897051a3d2
parent2f32cb547feb0864eae9345b50a1119decca28c0
Obey coding-system-for-write when writing stdout/stderr in batch

* src/print.c (printchar_to_stream):
* src/xdisp.c (message_to_stderr): If coding-system-for-write has
a non-nil value, use it to encode output in preference to
locale-coding-system.  See the discussions in
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg00048.html
for the details.

* doc/lispref/os.texi (Terminal Output): Document how to send
non-ASCII text via 'send-string-to-terminal'.
(Batch Mode): Document how text written to standard streams is
encoded.  Fix inaccuracy regarding which output streams are used
by output functions in batch mode.
doc/lispref/os.texi
src/print.c
src/xdisp.c