aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io.c b/io.c
index 9319e2934a..072d7307b8 100644
--- a/io.c
+++ b/io.c
@@ -5020,6 +5020,7 @@ rb_io_reopen(int argc, VALUE *argv, VALUE file)
}
fptr->mode = flags;
rb_io_mode_enc(fptr, StringValueCStr(nmode));
+ rb_econv_opts(Qnil, &fptr->encs.opts);
}
fptr->pathv = rb_str_new_frozen(fname);