mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* win32/win32.c (init_stdhandle): backport mistake of r29382.
some code are needless in ruby 1.8. [ruby-core:34579] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@30604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0afea55d2c
commit
896e7a0654
2 changed files with 6 additions and 9 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Wed Jan 19 17:38:03 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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@ruby-lang.org>
|
Sat Jan 15 06:04:00 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* ext/zlib/zlib.c (gzfile_check_footer): ISIZE (Input SIZE) in gzip's
|
* ext/zlib/zlib.c (gzfile_check_footer): ISIZE (Input SIZE) in gzip's
|
||||||
|
|
|
@ -1920,21 +1920,12 @@ init_stdhandle(void)
|
||||||
if (fileno(stdin) < 0) {
|
if (fileno(stdin) < 0) {
|
||||||
stdin->_file = open_null(0);
|
stdin->_file = open_null(0);
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
setmode(fileno(stdin), O_BINARY);
|
|
||||||
}
|
|
||||||
if (fileno(stdout) < 0) {
|
if (fileno(stdout) < 0) {
|
||||||
stdout->_file = open_null(1);
|
stdout->_file = open_null(1);
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
setmode(fileno(stdout), O_BINARY);
|
|
||||||
}
|
|
||||||
if (fileno(stderr) < 0) {
|
if (fileno(stderr) < 0) {
|
||||||
stderr->_file = open_null(2);
|
stderr->_file = open_null(2);
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
setmode(fileno(stderr), O_BINARY);
|
|
||||||
}
|
|
||||||
if (nullfd >= 0 && !keep) close(nullfd);
|
if (nullfd >= 0 && !keep) close(nullfd);
|
||||||
setvbuf(stderr, NULL, _IONBF, 0);
|
setvbuf(stderr, NULL, _IONBF, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue