-
Notifications
You must be signed in to change notification settings - Fork 186
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#write does not support multiple arguments with different encodings #2829
Comments
Thank you for reporting. I can reproduce it on TruffleRuby master:
|
Interesting, this works because the One solution is to internally call Another solution is have some Primitive to concatenate strings without looking at the encoding, but this is only OK if IO#write is not going to do any encoding conversion, so seems a bit tricky but feasible. |
Regarding a Fiber scheduler. It looks like there are several scenarios of how CRuby (
|
Fixed in 360ec34 |
Command to reproduce the issue:
ruby -rtempfile -e 'p Tempfile.open { |f| f.write("\x87".b, "ą") }'
It outputs
3
both on CRuby and JRuby, but crashes on TruffleRuby.The text was updated successfully, but these errors were encountered: