ruby-changes:11525
From: naruse <ko1@a...>
Date: Wed, 8 Apr 2009 17:31:40 +0900 (JST)
Subject: [ruby-changes:11525] Ruby:r23155 (trunk): * string.c (rb_str_chop_bang): reset coderange.
naruse 2009-04-08 17:31:25 +0900 (Wed, 08 Apr 2009) New Revision: 23155 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23155 Log: * string.c (rb_str_chop_bang): reset coderange. [ruby-core:23155] Modified files: trunk/ChangeLog trunk/string.c Index: ChangeLog =================================================================== --- ChangeLog (revision 23154) +++ ChangeLog (revision 23155) @@ -1,3 +1,7 @@ +Wed Apr 8 17:29:29 2009 NARUSE, Yui <naruse@r...> + + * string.c (rb_str_chop_bang): reset coderange. [ruby-core:23155] + Wed Apr 8 14:00:04 2009 Nobuyoshi Nakada <nobu@r...> * lib/mkmf.rb (what_type?): fixed typo, and refined for member of Index: string.c =================================================================== --- string.c (revision 23154) +++ string.c (revision 23155) @@ -5935,7 +5935,7 @@ { if (RSTRING_LEN(str) > 0) { long len; - str_modify_keep_cr(str); + rb_str_modify(str); len = chopped_length(str); STR_SET_LEN(str, len); RSTRING_PTR(str)[len] = '\0'; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/