diff options
author | Kenichi Handa <handa@m17n.org> | 2011-11-11 17:09:40 +0900 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2011-11-11 17:09:40 +0900 |
commit | 659afedebb2cdd864fee5f33c7e32eef7bc76cdf (patch) | |
tree | 2730a33f173121a497dd3d23703a3bfe02213560 /src/callproc.c | |
parent | 0756b0c3a6e60dd623da6f12bc8d2de05ef7b8f1 (diff) | |
download | emacs-659afedebb2cdd864fee5f33c7e32eef7bc76cdf.tar.gz |
callproc.c (Fcall_process): Set the member dst_multibyte of process_coding.
Diffstat (limited to 'src/callproc.c')
-rw-r--r-- | src/callproc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/callproc.c b/src/callproc.c index 0859aaef2e6..01772efce30 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -712,6 +712,7 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) /* If BUFFER is nil, we must read process output once and then discard it, so setup coding system but with nil. */ setup_coding_system (Qnil, &process_coding); + process_coding.dst_multibyte = 0; } else { @@ -747,6 +748,8 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) && !NILP (val)) val = raw_text_coding_system (val); setup_coding_system (val, &process_coding); + process_coding.dst_multibyte + = ! NILP (BVAR (current_buffer, enable_multibyte_characters)); } process_coding.src_multibyte = 0; |