mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (rb_w32_pipe_exec): internal fds should be always
binmode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
04e19b5587
commit
2f4e4a841d
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Oct 28 19:00:51 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (rb_w32_pipe_exec): internal fds should be always
|
||||
binmode.
|
||||
|
||||
Tue Oct 28 17:21:18 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||
|
||||
* tool/make-snapshot.rb: merged from ruby_1_9_1.
|
||||
|
|
|
@ -764,9 +764,8 @@ rb_w32_pipe_exec(const char *cmd, const char *prog, int mode, int *pipe,
|
|||
reading = TRUE;
|
||||
writing = FALSE;
|
||||
}
|
||||
mode &= ~(O_RDWR|O_RDONLY|O_WRONLY);
|
||||
if (!(mode & O_BINARY))
|
||||
mode |= O_TEXT;
|
||||
mode &= ~(O_RDWR|O_RDONLY|O_WRONLY|O_TEXT);
|
||||
mode |= O_BINARY;
|
||||
|
||||
sa.nLength = sizeof (SECURITY_ATTRIBUTES);
|
||||
sa.lpSecurityDescriptor = NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue