summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-19 08:40:11 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-19 08:40:11 +0000
commit896e7a06547b25ac70a0a9d0b2f97ec7572da123 (patch)
treecc992e9b4c7da78cafa1976b26e86d7a39f140fb /win32/win32.c
parent0afea55d2cf803ed8b9c3ebf1b250d00b7d85a22 (diff)
* 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
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c9
1 files changed, 0 insertions, 9 deletions
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);
}