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 | 76507163c13f6c93736ac5346e5c8ea30828ebfb (patch) | |
| tree | 824aa9437d2e3114b43df002e03e36ab9052a40f | |
| parent | 7f20640f3d07c6f7644736fad1da6ba3035aba71 (diff) | |
| download | ruby-76507163c13f6c93736ac5346e5c8ea30828ebfb.tar.gz ruby-76507163c13f6c93736ac5346e5c8ea30828ebfb.tar.xz ruby-76507163c13f6c93736ac5346e5c8ea30828ebfb.zip | |
* ruby.c (process_options): set default_external before loading
libraries. [ruby-dev:33801]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | ruby.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Sat Feb 16 08:00:01 2008 NARUSE, Yui <naruse@ruby-lang.org> + + * ruby.c (process_options): set default_external before loading + libraries. [ruby-dev:33801] + Sat Feb 16 05:49:54 2008 NARUSE, Yui <naruse@ruby-lang.org> * enc/iso_8859_{4,13}.c: Windows-1257 is replica of ISO-8859-13. @@ -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; } |
