aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-13 20:40:43 +0000
committerRichard M. Stallman1997-07-13 20:40:43 +0000
commitc49f3d5a65a9faf3827610d0b80683088a9574d4 (patch)
tree8f74b841084c2fa820c8a7a5c94ddca677dffa1c /src
parentfa228724ffaccc0bfe839549f7ea2a3c9959d3ab (diff)
downloademacs-c49f3d5a65a9faf3827610d0b80683088a9574d4.tar.gz
emacs-c49f3d5a65a9faf3827610d0b80683088a9574d4.zip
(Fcall_process) [MSDOS]: Request EOL conversion of
the process output, unless we were promised it is binary.
Diffstat (limited to 'src')
-rw-r--r--src/callproc.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/callproc.c b/src/callproc.c
index d463f099b26..5812821ee11 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -295,6 +295,19 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
295 val = Qnil; 295 val = Qnil;
296 } 296 }
297 setup_coding_system (Fcheck_coding_system (val), &process_coding); 297 setup_coding_system (Fcheck_coding_system (val), &process_coding);
298#ifdef MSDOS
299 /* On MSDOS, if the user did not ask for binary,
300 treat it as "text" which means doing CRLF conversion. */
301 /* FIXME: this probably should be moved into the guts of
302 `Ffind_operation_coding_system' for the case of `call-process'. */
303 if (NILP (Vbinary_process_output))
304 {
305 process_coding.eol_type = CODING_EOL_CRLF;
306 if (process_coding.type == coding_type_no_conversion)
307 /* FIXME: should we set type to undecided? */
308 process_coding.type = coding_type_emacs_mule;
309 }
310#endif
298 } 311 }
299 } 312 }
300 313