[前][次][番号順一覧][スレッド一覧]

ruby-changes:33543

From: nobu <ko1@a...>
Date: Fri, 18 Apr 2014 17:27:14 +0900 (JST)
Subject: [ruby-changes:33543] nobu:r45624 (trunk): string.c: revert r45622

nobu	2014-04-18 17:27:09 +0900 (Fri, 18 Apr 2014)

  New Revision: 45624

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45624

  Log:
    string.c: revert r45622
    
    * string.c (str_buf_cat): revert r45622.  broken data can be added
      later.

  Modified files:
    trunk/string.c
Index: string.c
===================================================================
--- string.c	(revision 45623)
+++ string.c	(revision 45624)
@@ -1500,10 +1500,7 @@ rb_str_modify_expand(VALUE str, long exp https://github.com/ruby/ruby/blob/trunk/string.c#L1500
 	    str_make_independent_expand(str, expand);
 	}
     }
-    if (ENC_CODERANGE(str) == ENC_CODERANGE_BROKEN) {
-	/* Force re-scan later */
-	ENC_CODERANGE_CLEAR(str);
-    }
+    ENC_CODERANGE_CLEAR(str);
 }
 
 /* As rb_str_modify(), but don't clear coderange */

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]