ruby-changes:18580
From: usa <ko1@a...>
Date: Wed, 19 Jan 2011 17:49:56 +0900 (JST)
Subject: [ruby-changes:18580] Ruby:r30604 (ruby_1_8): * win32/win32.c (init_stdhandle): backport mistake of r29382.
usa 2011-01-19 17:40:11 +0900 (Wed, 19 Jan 2011) New Revision: 30604 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30604 Log: * win32/win32.c (init_stdhandle): backport mistake of r29382. some code are needless in ruby 1.8. [ruby-core:34579] Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/win32/win32.c Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 30603) +++ ruby_1_8/ChangeLog (revision 30604) @@ -1,3 +1,9 @@ +Wed Jan 19 17:38:03 2011 NAKAMURA Usaku <usa@r...> + + * win32/win32.c (init_stdhandle): backport mistake of r29382. + some code are needless in ruby 1.8. + [ruby-core:34579] + Sat Jan 15 06:04:00 2011 NARUSE, Yui <naruse@r...> * ext/zlib/zlib.c (gzfile_check_footer): ISIZE (Input SIZE) in gzip's Index: ruby_1_8/win32/win32.c =================================================================== --- ruby_1_8/win32/win32.c (revision 30603) +++ ruby_1_8/win32/win32.c (revision 30604) @@ -1920,21 +1920,12 @@ if (fileno(stdin) < 0) { stdin->_file = open_null(0); } - else { - setmode(fileno(stdin), O_BINARY); - } if (fileno(stdout) < 0) { stdout->_file = open_null(1); } - else { - setmode(fileno(stdout), O_BINARY); - } if (fileno(stderr) < 0) { stderr->_file = open_null(2); } - else { - setmode(fileno(stderr), O_BINARY); - } if (nullfd >= 0 && !keep) close(nullfd); setvbuf(stderr, NULL, _IONBF, 0); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/