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

ruby-changes:28812

From: nobu <ko1@a...>
Date: Tue, 21 May 2013 03:08:48 +0900 (JST)
Subject: [ruby-changes:28812] nobu:r40864 (trunk): string.c: infect

nobu	2013-05-21 03:07:31 +0900 (Tue, 21 May 2013)

  New Revision: 40864

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

  Log:
    string.c: infect
    
    * string.c (rb_str_conv_enc_opts): should infect.

  Modified files:
    trunk/ChangeLog
    trunk/string.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40863)
+++ ChangeLog	(revision 40864)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue May 21 03:07:26 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* string.c (rb_str_conv_enc_opts): should infect.
+
 Mon May 20 22:24:45 2013  Akinori MUSHA  <knu@i...>
 
 	* lib/set.rb (Set#delete_if, Set#keep_if): Avoid blockless call of
Index: string.c
===================================================================
--- string.c	(revision 40863)
+++ string.c	(revision 40864)
@@ -520,6 +520,7 @@ rb_str_conv_enc_opts(VALUE str, rb_encod https://github.com/ruby/ruby/blob/trunk/string.c#L520
 
     len = RSTRING_LEN(str);
     newstr = rb_str_new(0, len);
+    OBJ_INFECT(newstr, str);
     olen = len;
 
     econv_wrapper = rb_obj_alloc(rb_cEncodingConverter);

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

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