]> code.delx.au - gnu-emacs/commitdiff
(sys_pipe): Use binary pipe I/O unconditionally.
authorEli Zaretskii <eliz@gnu.org>
Wed, 15 Apr 1998 14:40:43 +0000 (14:40 +0000)
committerEli Zaretskii <eliz@gnu.org>
Wed, 15 Apr 1998 14:40:43 +0000 (14:40 +0000)
src/w32.c

index ca05a17c833a79aed7ac60444f2c75853b216554..d29704cc33f862e0f4b4b6a00756316681c8cfb6 100644 (file)
--- 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;
     }