]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fcall_process): Fix previous change.
authorKenichi Handa <handa@m17n.org>
Tue, 9 Jul 2002 00:12:23 +0000 (00:12 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 9 Jul 2002 00:12:23 +0000 (00:12 +0000)
src/callproc.c

index ddc134658ca5f4c6f67e8fc8d61399cf729fc977..f671c0444199fbfb3b7f864a24eb6c859e66156a 100644 (file)
@@ -787,7 +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))
+               /* We can't use the macro CODING_REQUIRE_DETECTION
+                  because it always returns nonzero if the coding
+                  system requires EOL detection.  Here, we have to
+                  check only whether or not the coding system
+                  requires text-encoding detection.  */
+               if (process_coding.type == coding_type_undecided)
                  {
                    detect_coding (&process_coding, bufptr, nread);
                    if (process_coding.composing != COMPOSITION_DISABLED)