From: Kenichi Handa Date: Tue, 9 Jul 2002 00:02:36 +0000 (+0000) Subject: (Fcall_process): If code detection is necessary, call detect_coding X-Git-Tag: emacs-pretest-21.2.91~179 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=714d6a27efd6a998336e3262c0317434f5e216d5;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 1f40ca59fc6..51ee5daf595 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -786,6 +786,12 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") size = decoding_buffer_size (&process_coding, nread); decoding_buf = (char *) xmalloc (size); + if (process_coding.type == coding_type_undecided) + { + 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;