string.c: infect
* string.c (rb_str_conv_enc_opts): should infect. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c249668382
commit
c4a8d40ca1
@ -1,3 +1,7 @@
|
|||||||
|
Tue May 21 03:07:26 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* string.c (rb_str_conv_enc_opts): should infect.
|
||||||
|
|
||||||
Mon May 20 22:24:45 2013 Akinori MUSHA <knu@iDaemons.org>
|
Mon May 20 22:24:45 2013 Akinori MUSHA <knu@iDaemons.org>
|
||||||
|
|
||||||
* lib/set.rb (Set#delete_if, Set#keep_if): Avoid blockless call of
|
* lib/set.rb (Set#delete_if, Set#keep_if): Avoid blockless call of
|
||||||
|
1
string.c
1
string.c
@ -520,6 +520,7 @@ rb_str_conv_enc_opts(VALUE str, rb_encoding *from, rb_encoding *to, int ecflags,
|
|||||||
|
|
||||||
len = RSTRING_LEN(str);
|
len = RSTRING_LEN(str);
|
||||||
newstr = rb_str_new(0, len);
|
newstr = rb_str_new(0, len);
|
||||||
|
OBJ_INFECT(newstr, str);
|
||||||
olen = len;
|
olen = len;
|
||||||
|
|
||||||
econv_wrapper = rb_obj_alloc(rb_cEncodingConverter);
|
econv_wrapper = rb_obj_alloc(rb_cEncodingConverter);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user