From: Richard M. Stallman Date: Sun, 13 Jul 1997 20:40:43 +0000 (+0000) Subject: (Fcall_process) [MSDOS]: Request EOL conversion of X-Git-Tag: emacs-20.1~1181 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c49f3d5a65a9faf3827610d0b80683088a9574d4;p=emacs.git (Fcall_process) [MSDOS]: Request EOL conversion of the process output, unless we were promised it is binary. --- 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.") 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 } }