mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ruby.c (process_options): fixed default_internal is nil.
(closes #862) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ada58fe013
commit
e53990e4bd
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Dec 13 15:55:37 2008 TAKAO Kouji <kouji@takao7.net>
|
||||
|
||||
* ruby.c (process_options): fixed default_internal is nil.
|
||||
(closes #862)
|
||||
|
||||
Sat Dec 13 14:24:38 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||
|
||||
* test/ruby/enc/test_utf16.rb: feature changed in r20626.
|
||||
|
|
2
ruby.c
2
ruby.c
|
@ -1244,7 +1244,7 @@ process_options(VALUE arg)
|
|||
enc = rb_enc_from_index(opt->intern.enc.index);
|
||||
rb_enc_set_default_internal(rb_enc_from_encoding(enc));
|
||||
}
|
||||
else
|
||||
else if (!rb_default_internal_encoding())
|
||||
/* Freeze default_internal */
|
||||
rb_enc_set_default_internal(Qnil);
|
||||
|
||||
|
|
Loading…
Reference in a new issue