diff options
| author | Eli Zaretskii | 1998-04-15 14:40:43 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 1998-04-15 14:40:43 +0000 |
| commit | 7664e30672e716085fe3453753985ffd66882629 (patch) | |
| tree | 4e2653c6f2ccf2619f6f51fa7af144266df6a3b9 /src | |
| parent | 208a446aa58082c79f79a94b7f36420bdd9be212 (diff) | |
| download | emacs-7664e30672e716085fe3453753985ffd66882629.tar.gz emacs-7664e30672e716085fe3453753985ffd66882629.zip | |
(sys_pipe): Use binary pipe I/O unconditionally.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32.c | 12 |
1 files changed, 2 insertions, 10 deletions
| @@ -2332,10 +2332,6 @@ sys_dup2 (int src, int dst) | |||
| 2332 | return rc; | 2332 | return rc; |
| 2333 | } | 2333 | } |
| 2334 | 2334 | ||
| 2335 | /* From callproc.c */ | ||
| 2336 | extern Lisp_Object Vbinary_process_input; | ||
| 2337 | extern Lisp_Object Vbinary_process_output; | ||
| 2338 | |||
| 2339 | /* Unix pipe() has only one arg */ | 2335 | /* Unix pipe() has only one arg */ |
| 2340 | int | 2336 | int |
| 2341 | sys_pipe (int * phandles) | 2337 | sys_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 | ||