]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fcall_process): If code detection is necessary, call detect_coding
authorKenichi Handa <handa@m17n.org>
Mon, 24 Jun 2002 00:35:37 +0000 (00:35 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 24 Jun 2002 00:35:37 +0000 (00:35 +0000)
directly here.

src/callproc.c

index 1a3ff6fcca903ccfedf3a65bedaa1e0649911559..ddc134658ca5f4c6f67e8fc8d61399cf729fc977 100644 (file)
@@ -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;