ruby-changes:1797
From: ko1@a...
Date: 27 Aug 2007 23:17:40 +0900
Subject: [ruby-changes:1797] matz - Ruby:r13288 (trunk): * string.c (rb_str_rstrip_bang): wrong strip point.
matz 2007-08-27 23:17:28 +0900 (Mon, 27 Aug 2007)
New Revision: 13288
Modified files:
trunk/ChangeLog
trunk/string.c
Log:
* string.c (rb_str_rstrip_bang): wrong strip point. [ruby-dev:31652]
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/string.c?r1=13288&r2=13287
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13288&r2=13287
Index: ChangeLog
===================================================================
--- ChangeLog (revision 13287)
+++ ChangeLog (revision 13288)
@@ -1,3 +1,7 @@
+Mon Aug 27 23:14:02 2007 Yukihiro Matsumoto <matz@r...>
+
+ * string.c (rb_str_rstrip_bang): wrong strip point. [ruby-dev:31652]
+
Mon Aug 27 22:39:08 2007 Yukihiro Matsumoto <matz@r...>
* encoding.c (rb_enc_codelen): raises invalid sequence exception
Index: string.c
===================================================================
--- string.c (revision 13287)
+++ string.c (revision 13288)
@@ -4260,9 +4260,9 @@
rb_str_modify(str);
enc = rb_enc_get(str);
- s = t = RSTRING_PTR(str);
+ s = RSTRING_PTR(str);
if (!s || RSTRING_LEN(str) == 0) return Qnil;
- e = RSTRING_END(str);
+ t = e = RSTRING_END(str);
while (s < e) {
int cc = rb_enc_codepoint(s, e, enc);
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml