diff options
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1010,6 +1010,8 @@ process_options(VALUE arg) else { enc = rb_locale_encoding(); } + rb_enc_set_default_external(rb_enc_from_encoding(enc)); + if (opt->e_script) { rb_encoding *eenc; if (opt->src.enc.index >= 0) { @@ -1053,8 +1055,6 @@ process_options(VALUE arg) } } - rb_enc_set_default_external(rb_enc_from_encoding(enc)); - return (VALUE)tree; } |