ruby-changes:8461
From: usa <ko1@a...>
Date: Tue, 28 Oct 2008 19:01:46 +0900 (JST)
Subject: [ruby-changes:8461] Ruby:r19993 (trunk): * win32/win32.c (rb_w32_pipe_exec): internal fds should be always
usa 2008-10-28 19:01:26 +0900 (Tue, 28 Oct 2008) New Revision: 19993 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19993 Log: * win32/win32.c (rb_w32_pipe_exec): internal fds should be always binmode. Modified files: trunk/ChangeLog trunk/win32/win32.c Index: ChangeLog =================================================================== --- ChangeLog (revision 19992) +++ ChangeLog (revision 19993) @@ -1,3 +1,8 @@ +Tue Oct 28 19:00:51 2008 NAKAMURA Usaku <usa@r...> + + * win32/win32.c (rb_w32_pipe_exec): internal fds should be always + binmode. + Tue Oct 28 17:21:18 2008 Yuki Sonoda (Yugui) <yugui@y...> * tool/make-snapshot.rb: merged from ruby_1_9_1. Index: win32/win32.c =================================================================== --- win32/win32.c (revision 19992) +++ win32/win32.c (revision 19993) @@ -764,9 +764,8 @@ 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/