You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Ruby.getErrorStream() PrintStream getting constructed from $stderr IO.
And it does not use its encoding settings.
I got char conversion errors in some cases where $stderr's encoding is utf-8.
jruby 1.7.13 release.
The text was updated successfully, but these errors were encountered:
Can be fixed by changing public IOOutputStream(final IRubyObject io) { this(io, true, true); }
to public IOOutputStream(final IRubyObject io) { this(io, ((RubyIO)io).getInputEncoding(), true, true); }
and defailt ASCII encoding not set in this case public IOOutputStream(final IRubyObject io, boolean checkAppend, boolean verifyCanWrite) { this(io, ASCIIEncoding.INSTANCE, checkAppend, verifyCanWrite); }
While it is true that IOOuputStream pretty much ignores the actual RubyIO encoding and uses ASCII as hardcoded default I have a hard time creating a proper repro.
In Ruby.getErrorStream() PrintStream getting constructed from $stderr IO.
And it does not use its encoding settings.
I got char conversion errors in some cases where $stderr's encoding is utf-8.
jruby 1.7.13 release.
The text was updated successfully, but these errors were encountered: