ruby-changes:4069
From: ko1@a...
Date: Thu, 21 Feb 2008 10:37:14 +0900 (JST)
Subject: [ruby-changes:4069] naruse - Ruby:r15559 (trunk): * include/ruby/encoding.h (rb_enc_asciicompat): dummy encoding is not
naruse 2008-02-21 10:36:50 +0900 (Thu, 21 Feb 2008)
New Revision: 15559
Modified files:
trunk/ChangeLog
trunk/include/ruby/encoding.h
Log:
* include/ruby/encoding.h (rb_enc_asciicompat): dummy encoding is not
ascii compatible. [ruby-dev:33878]
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15559&r2=15558&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/encoding.h?r1=15559&r2=15558&diff_format=u
Index: include/ruby/encoding.h
===================================================================
--- include/ruby/encoding.h (revision 15558)
+++ include/ruby/encoding.h (revision 15559)
@@ -154,7 +154,7 @@
#define rb_enc_isspace(c,enc) ONIGENC_IS_CODE_SPACE(enc,c)
#define rb_enc_isdigit(c,enc) ONIGENC_IS_CODE_DIGIT(enc,c)
-#define rb_enc_asciicompat(enc) (rb_enc_mbminlen(enc)==1)
+#define rb_enc_asciicompat(enc) (!rb_enc_dummy_p(enc) && rb_enc_mbminlen(enc)==1)
int rb_enc_casefold(char *to, const char *p, const char *e, rb_encoding *enc);
int rb_enc_toupper(int c, rb_encoding *enc);
Index: ChangeLog
===================================================================
--- ChangeLog (revision 15558)
+++ ChangeLog (revision 15559)
@@ -1,3 +1,8 @@
+Thu Feb 21 10:35:04 2008 NARUSE, Yui <naruse@r...>
+
+ * include/ruby/encoding.h (rb_enc_asciicompat): dummy encoding is not
+ ascii compatible. [ruby-dev:33878]
+
Thu Feb 21 00:01:34 2008 Nobuyoshi Nakada <nobu@r...>
* configure.in (RPATHFLAG): -R option of HP-UX ld is not for runtime
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/