]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fcall_process): If code detection is necessary, call detect_coding
authorKenichi Handa <handa@m17n.org>
Tue, 9 Jul 2002 00:02:36 +0000 (00:02 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 9 Jul 2002 00:02:36 +0000 (00:02 +0000)
directly here.

src/callproc.c

index 1f40ca59fc6375f040cb2aa76889242858d8e817..51ee5daf59504a85204d40cc6ccef3da14bf1801 100644 (file)
@@ -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;