]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fcall_process) [MSDOS]: Request EOL conversion of
authorRichard M. Stallman <rms@gnu.org>
Sun, 13 Jul 1997 20:40:43 +0000 (20:40 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 13 Jul 1997 20:40:43 +0000 (20:40 +0000)
the process output, unless we were promised it is binary.

src/callproc.c

index d463f099b264a6834a1c5dd9402e595552183b50..5812821ee1150b1e8b46a3b54d19ba4c65cdfec1 100644 (file)
@@ -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
       }
   }