aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii1998-04-15 14:40:43 +0000
committerEli Zaretskii1998-04-15 14:40:43 +0000
commit7664e30672e716085fe3453753985ffd66882629 (patch)
tree4e2653c6f2ccf2619f6f51fa7af144266df6a3b9 /src
parent208a446aa58082c79f79a94b7f36420bdd9be212 (diff)
downloademacs-7664e30672e716085fe3453753985ffd66882629.tar.gz
emacs-7664e30672e716085fe3453753985ffd66882629.zip
(sys_pipe): Use binary pipe I/O unconditionally.
Diffstat (limited to 'src')
-rw-r--r--src/w32.c12
1 files 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)
2332 return rc; 2332 return rc;
2333} 2333}
2334 2334
2335/* From callproc.c */
2336extern Lisp_Object Vbinary_process_input;
2337extern Lisp_Object Vbinary_process_output;
2338
2339/* Unix pipe() has only one arg */ 2335/* Unix pipe() has only one arg */
2340int 2336int
2341sys_pipe (int * phandles) 2337sys_pipe (int * phandles)
@@ -2352,14 +2348,10 @@ sys_pipe (int * phandles)
2352 2348
2353 if (rc == 0) 2349 if (rc == 0)
2354 { 2350 {
2355 flags = FILE_PIPE | FILE_READ; 2351 flags = FILE_PIPE | FILE_READ | FILE_BINARY;
2356 if (!NILP (Vbinary_process_output))
2357 flags |= FILE_BINARY;
2358 fd_info[phandles[0]].flags = flags; 2352 fd_info[phandles[0]].flags = flags;
2359 2353
2360 flags = FILE_PIPE | FILE_WRITE; 2354 flags = FILE_PIPE | FILE_WRITE | FILE_BINARY;
2361 if (!NILP (Vbinary_process_input))
2362 flags |= FILE_BINARY;
2363 fd_info[phandles[1]].flags = flags; 2355 fd_info[phandles[1]].flags = flags;
2364 } 2356 }
2365 2357