GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
See rubinius/rubinius#3236 reproducable with JRuby 1.7.17 and master.
Thanks to you and @FooBarWidget for finding this! It also appears to reproduce on JRuby master, which is surprising since I have re-ported much of the IO and encoding logic.
Definitely a big one to fix for 1.7.18.
Fixed on master. I'll try to make same fix on 1.7 now.
* test/ruby/test_io_m17n.rb: Add test for coderange clearing in
IO#read with buffer. See jruby/jruby#2316.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Clear code range when modify/expanding string for IO.read(..,buf).
Test added to MRI in http://mla.n-z.jp/~w3ml/w3ml.cgi/ruby-changes/msg/36766