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 6c9707ab48..39ee4d7c2f 100644
--- a/io.c
+++ b/io.c
@@ -4606,7 +4606,7 @@ rb_scan_open_args(int argc, VALUE *argv,
static VALUE fs_enc;
if (!fs_enc)
fs_enc = rb_enc_from_encoding(fs_encoding);
- fname = rb_str_transcode(fname, fs_enc, 0);
+ fname = rb_str_transcode(fname, fs_enc, 0, Qnil);
}
}
#endif