From: Kenichi Handa Date: Mon, 24 Jun 2002 00:35:37 +0000 (+0000) Subject: (Fcall_process): If code detection is necessary, call detect_coding X-Git-Tag: ttn-vms-21-2-B4~14477 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=950a45d052141dc8fc9286e3039508f3aaafd949;p=emacs.git (Fcall_process): If code detection is necessary, call detect_coding directly here. --- diff --git a/src/callproc.c b/src/callproc.c index 1a3ff6fcca9..ddc134658ca 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -787,6 +787,12 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) size = decoding_buffer_size (&process_coding, nread); decoding_buf = (char *) xmalloc (size); + if (CODING_REQUIRE_DETECTION (&process_coding)) + { + detect_coding (&process_coding, bufptr, nread); + if (process_coding.composing != COMPOSITION_DISABLED) + coding_allocate_composition_data (&process_coding, PT); + } if (process_coding.cmp_data) process_coding.cmp_data->char_offset = PT;