diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-15 23:03:22 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-15 23:03:22 +0000 |
commit | 9a431fd58c33900b6ced1d5ee18400276a32f2e5 (patch) | |
tree | 824aa9437d2e3114b43df002e03e36ab9052a40f /ruby.c | |
parent | a2d85d61bdad79c89b0281dc3ad2e9afc3ae1c6b (diff) | |
download | ruby-9a431fd58c33900b6ced1d5ee18400276a32f2e5.tar.gz |
* ruby.c (process_options): set default_external before loading
libraries. [ruby-dev:33801]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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; } |