1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

string.c: revert r45622

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-04-18 08:27:09 +00:00
parent 46c3749996
commit 39fe6aa304

View file

@ -1500,10 +1500,7 @@ rb_str_modify_expand(VALUE str, long expand)
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 */