summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
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 dc7ea4221c..0d1e98403e 100644
--- a/io.c
+++ b/io.c
@@ -2163,7 +2163,7 @@ next_argv()
}
file = prep_stdio(fr, FMODE_READABLE, rb_cFile);
}
- rb_io_binmode(file);
+ if (binmode) rb_io_binmode(file);
}
else {
init_p = 0;