ruby-changes:33542
From: nobu <ko1@a...>
Date: Fri, 18 Apr 2014 17:17:51 +0900 (JST)
Subject: [ruby-changes:33542] nobu:r45623 (trunk): string.c: r45621
nobu 2014-04-18 17:17:44 +0900 (Fri, 18 Apr 2014) New Revision: 45623 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45623 Log: string.c: r45621 * string.c (str_buf_cat): revert r45621. this function does not scan appended data. Modified files: trunk/string.c Index: string.c =================================================================== --- string.c (revision 45622) +++ string.c (revision 45623) @@ -2024,7 +2024,7 @@ str_buf_cat(VALUE str, const char *ptr, https://github.com/ruby/ruby/blob/trunk/string.c#L2024 if (ptr >= RSTRING_PTR(str) && ptr <= RSTRING_END(str)) { off = ptr - RSTRING_PTR(str); } - str_modify_keep_cr(str); + rb_str_modify(str); if (len == 0) return 0; if (STR_EMBED_P(str)) { capa = RSTRING_EMBED_LEN_MAX; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/