summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-13 16:24:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-13 16:24:40 +0000
commit6c1a046017f8ee958f831dac30f8b3547364fd8f (patch)
tree90feca1478de2d69c61421f16a73f0180e4dc763 /io.c
parent784da4426fb0e1a869598f2d68296aca77dc229d (diff)
downloadruby-6c1a046017f8ee958f831dac30f8b3547364fd8f.tar.gz
ruby-6c1a046017f8ee958f831dac30f8b3547364fd8f.tar.xz
ruby-6c1a046017f8ee958f831dac30f8b3547364fd8f.zip
* io.c (next_argv): not always set binmode.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 7381fe1c9..fe3b0ed6c 100644
--- a/io.c
+++ b/io.c
@@ -2889,7 +2889,7 @@ next_argv()
int defout_binmode = 0;
GetOpenFile(rb_defout, fptr);
- if (fptr->mode | FMODE_BINMODE)
+ if (fptr->mode & FMODE_BINMODE)
defout_binmode = 1;
if (init_p == 0) {