summaryrefslogtreecommitdiff
path: root/src/callproc.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2002-07-09 00:12:23 +0000
committerKenichi Handa <handa@m17n.org>2002-07-09 00:12:23 +0000
commitb252f80121bac145a278a29d070596bba1715c4b (patch)
treeaa8e6e35c71ef110a4588ce3ab237b26d213e6f2 /src/callproc.c
parent9406d1d986e45c464b24733525d2797cbed5ee6b (diff)
downloademacs-b252f80121bac145a278a29d070596bba1715c4b.tar.gz
(Fcall_process): Fix previous change.
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c
index ddc134658ca..f671c044419 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -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)