mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
reapply r37098
UTF-16 and UTF-32 are also treated as unicode since r37101. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
960e8a419f
commit
0751c5d16d
1 changed files with 1 additions and 2 deletions
|
@ -458,8 +458,7 @@ enc_ascii_compatible_p(VALUE enc)
|
|||
int
|
||||
rb_enc_unicode_p(rb_encoding *enc)
|
||||
{
|
||||
const char *name = rb_enc_name(enc);
|
||||
return name[0] == 'U' && name[1] == 'T' && name[2] == 'F' && name[4] != '7';
|
||||
return ONIGENC_IS_UNICODE(enc);
|
||||
}
|
||||
|
||||
static st_data_t
|
||||
|
|
Loading…
Add table
Reference in a new issue