ruby-changes:4018
From: ko1@a...
Date: Sat, 16 Feb 2008 19:06:31 +0900 (JST)
Subject: [ruby-changes:4018] naruse - Ruby:r15508 (trunk): * string.c (str_strlen): revert r15507.
naruse 2008-02-16 19:06:15 +0900 (Sat, 16 Feb 2008)
New Revision: 15508
Modified files:
trunk/ChangeLog
trunk/string.c
Log:
* string.c (str_strlen): revert r15507. [ruby-dev:33810]
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/string.c?r1=15508&r2=15507&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15508&r2=15507&diff_format=u
Index: ChangeLog
===================================================================
--- ChangeLog (revision 15507)
+++ ChangeLog (revision 15508)
@@ -1,3 +1,7 @@
+Sat Feb 16 19:04:17 2008 NARUSE, Yui <naruse@r...>
+
+ * string.c (str_strlen): revert r15507. [ruby-dev:33810]
+
Sat Feb 16 18:25:14 2008 NARUSE, Yui <naruse@r...>
* string.c (str_strlen): little more optimize.
Index: string.c
===================================================================
--- string.c (revision 15507)
+++ string.c (revision 15508)
@@ -667,9 +667,6 @@
if (len < 0) {
rb_raise(rb_eArgError, "invalid mbstring sequence");
}
- if (ENC_CODERANGE(str) != ENC_CODERANGE_VALID && enc == STR_ENC_GET(str)) {
- ENC_CODERANGE_SET(str, ENC_CODERANGE_VALID);
- }
return len;
}
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/