From 7664e30672e716085fe3453753985ffd66882629 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 15 Apr 1998 14:40:43 +0000 Subject: [PATCH] (sys_pipe): Use binary pipe I/O unconditionally. --- src/w32.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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; } -- 2.39.2