changeset 18765:a407fb58d35f

(Fcall_process) [MSDOS]: Request EOL conversion of the process output, unless we were promised it is binary.
author Richard M. Stallman <rms@gnu.org>
date Sun, 13 Jul 1997 20:40:43 +0000
parents 2ef1d8539441
children ac2e7e21abb0
files src/callproc.c
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/callproc.c	Sun Jul 13 20:37:01 1997 +0000
+++ b/src/callproc.c	Sun Jul 13 20:40:43 1997 +0000
@@ -295,6 +295,19 @@
 	      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
       }
   }