Skip to content

Commit

Permalink
Clear code range when modify/expanding string for IO.read(..,buf).
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Dec 15, 2014
1 parent 53ca557 commit fc05939
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/org/jruby/RubyIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -3144,6 +3144,7 @@ private IRubyObject readNotAll(ThreadContext context, OpenFile myOpenFile, int l
}

str.setValue(newBuffer);
str.clearCodeRange();
str.setTaint(true);

return str;
Expand Down

0 comments on commit fc05939

Please sign in to comment.