ruby-changes:25055
From: nobu <ko1@a...>
Date: Sat, 6 Oct 2012 23:23:04 +0900 (JST)
Subject: [ruby-changes:25055] nobu:r37107 (trunk): reapply r37098
nobu 2012-10-06 23:22:52 +0900 (Sat, 06 Oct 2012) New Revision: 37107 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37107 Log: reapply r37098 UTF-16 and UTF-32 are also treated as unicode since r37101. Modified files: trunk/encoding.c Index: encoding.c =================================================================== --- encoding.c (revision 37106) +++ encoding.c (revision 37107) @@ -458,8 +458,7 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/