* encoding.c (rb_enc_aliases_enc_i): skips default internal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cbc6a104b2
commit
e5f1572583
@ -1,3 +1,7 @@
|
||||
Thu Dec 11 20:05:17 2008 <nobu@ruby-lang.org>
|
||||
|
||||
* encoding.c (rb_enc_aliases_enc_i): skips default internal.
|
||||
|
||||
Thu Dec 11 19:31:45 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/test/unit/assertions.rb: extracted from lib/test/unit.rb.
|
||||
|
@ -1297,6 +1297,7 @@ rb_enc_aliases_enc_i(st_data_t name, st_data_t orig, st_data_t arg)
|
||||
if (NIL_P(str)) {
|
||||
rb_encoding *enc = rb_enc_from_index(idx);
|
||||
|
||||
if (!enc) return ST_CONTINUE;
|
||||
if (STRCASECMP((char*)name, rb_enc_name(enc)) == 0) {
|
||||
return ST_CONTINUE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user