fix previous locale_encoding change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bef85feb24
commit
65a953c7c9
1
ruby.c
1
ruby.c
@ -145,6 +145,7 @@ locale_encoding(void)
|
|||||||
if (codeset == Qnil)
|
if (codeset == Qnil)
|
||||||
return rb_default_encoding();
|
return rb_default_encoding();
|
||||||
|
|
||||||
|
name = StringValueCStr(codeset);
|
||||||
idx = rb_enc_find_index(name);
|
idx = rb_enc_find_index(name);
|
||||||
if (idx < 0)
|
if (idx < 0)
|
||||||
return rb_default_encoding();
|
return rb_default_encoding();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user