diff --git a/ChangeLog b/ChangeLog index a435cd52d8..07002c5c10 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Jan 19 17:38:03 2011 NAKAMURA Usaku + + * 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 * ext/zlib/zlib.c (gzfile_check_footer): ISIZE (Input SIZE) in gzip's diff --git a/win32/win32.c b/win32/win32.c index 39b11efef4..2e91a14524 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1920,21 +1920,12 @@ init_stdhandle(void) 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); }