aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1997-07-13 20:40:43 +0000
committerRichard M. Stallman <[email protected]>1997-07-13 20:40:43 +0000
commitc49f3d5a65a9faf3827610d0b80683088a9574d4 (patch)
tree8f74b841084c2fa820c8a7a5c94ddca677dffa1c
parentfa228724ffaccc0bfe839549f7ea2a3c9959d3ab (diff)
(Fcall_process) [MSDOS]: Request EOL conversion of
the process output, unless we were promised it is binary.
-rw-r--r--src/callproc.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/callproc.c b/src/callproc.c
index d463f099b2..5812821ee1 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.")
val = Qnil;
}
setup_coding_system (Fcheck_coding_system (val), &process_coding);
+#ifdef MSDOS
+ /* On MSDOS, if the user did not ask for binary,
+ treat it as "text" which means doing CRLF conversion. */
+ /* FIXME: this probably should be moved into the guts of
+ `Ffind_operation_coding_system' for the case of `call-process'. */
+ if (NILP (Vbinary_process_output))
+ {
+ process_coding.eol_type = CODING_EOL_CRLF;
+ if (process_coding.type == coding_type_no_conversion)
+ /* FIXME: should we set type to undecided? */
+ process_coding.type = coding_type_emacs_mule;
+ }
+#endif
}
}