From: Kenichi Handa Date: Fri, 11 Nov 2011 08:09:40 +0000 (+0900) Subject: callproc.c (Fcall_process): Set the member dst_multibyte of process_coding. X-Git-Tag: emacs-pretest-24.0.92~215 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=659afedebb2cdd864fee5f33c7e32eef7bc76cdf;p=emacs.git callproc.c (Fcall_process): Set the member dst_multibyte of process_coding. --- diff --git a/src/ChangeLog b/src/ChangeLog index 42dede8e300..49e469b8c2f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-11-11 Kenichi Handa + + * callproc.c (Fcall_process): Set the member dst_multibyte of + process_coding. + 2011-11-11 Johan Bockgård * xdisp.c (fill_composite_glyph_string): Always set s->face, to 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;