[前][次][番号順一覧][スレッド一覧]

ruby-changes:25046

From: nobu <ko1@a...>
Date: Sat, 6 Oct 2012 00:14:26 +0900 (JST)
Subject: [ruby-changes:25046] nobu:r37098 (trunk): encoding.c: unicode_p

nobu	2012-10-06 00:14:15 +0900 (Sat, 06 Oct 2012)

  New Revision: 37098

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37098

  Log:
    encoding.c: unicode_p
    
    * encoding.c (rb_enc_unicode_p): oniguruma provides Unicode flag.

  Modified files:
    trunk/encoding.c

Index: encoding.c
===================================================================
--- encoding.c	(revision 37097)
+++ encoding.c	(revision 37098)
@@ -457,8 +457,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/

[前][次][番号順一覧][スレッド一覧]