From: Eli Zaretskii Date: Wed, 15 Apr 1998 14:40:43 +0000 (+0000) Subject: (sys_pipe): Use binary pipe I/O unconditionally. X-Git-Tag: emacs-20.3~1510 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7664e30672e716085fe3453753985ffd66882629;p=emacs.git (sys_pipe): Use binary pipe I/O unconditionally. --- diff --git a/src/w32.c b/src/w32.c index ca05a17c833..d29704cc33f 100644 --- a/src/w32.c +++ b/src/w32.c @@ -2332,10 +2332,6 @@ sys_dup2 (int src, int dst) return rc; } -/* From callproc.c */ -extern Lisp_Object Vbinary_process_input; -extern Lisp_Object Vbinary_process_output; - /* Unix pipe() has only one arg */ int sys_pipe (int * phandles) @@ -2352,14 +2348,10 @@ sys_pipe (int * phandles) if (rc == 0) { - flags = FILE_PIPE | FILE_READ; - if (!NILP (Vbinary_process_output)) - flags |= FILE_BINARY; + flags = FILE_PIPE | FILE_READ | FILE_BINARY; fd_info[phandles[0]].flags = flags; - flags = FILE_PIPE | FILE_WRITE; - if (!NILP (Vbinary_process_input)) - flags |= FILE_BINARY; + flags = FILE_PIPE | FILE_WRITE | FILE_BINARY; fd_info[phandles[1]].flags = flags; }