changeset 46260:b1e78489c540

(Fcall_process): Fix previous change.
author Kenichi Handa <handa@m17n.org>
date Tue, 09 Jul 2002 00:12:23 +0000
parents e995615b440a
children 9bdff8283f91
files src/callproc.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/callproc.c	Mon Jul 08 22:32:35 2002 +0000
+++ b/src/callproc.c	Tue Jul 09 00:12:23 2002 +0000
@@ -787,7 +787,12 @@
 		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)