-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
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? Sign in to your account
IO.copy_stream keep pos of destination to beginning of file #3280
Comments
Thank you for the report. truffleruby/src/main/ruby/truffleruby/core/io.rb Lines 368 to 370 in c6e6162
A Tempfile is not an IO or a File, it's a separate class using delegation:
And so the coercion tries |
https://github.com/ruby/ruby/blob/2d6067dc7d02c5942da6636bba8b1629065aecf0/io.c#L13160 is the conversion logic in CRuby. |
Fix in #3282 |
Thx for the prompt fix @eregon 🙏 Unrelated, but when can one expect docker truffleruby images targeting v23? |
@HoneyryderChuck The Docker images for 23.0 and 23.1 are already available: https://github.com/graalvm/container/blob/master/truffleruby-community/README.md |
Oh, i was still using |
This fix will be in the 23.1.2 release which will be available on January 23, 2024. |
This is the minimum repro I could make:
Using ruby 3.2, the output is 100000, whereas in truffleruby, output is 0.
version was
truffleruby 22.3.1, like ruby 3.0.3, GraalVM CE Native [x86_64-linux]
(I use truffleruby for tests in docker, there is no v23 image available yet).The text was updated successfully, but these errors were encountered: