Forum: JRuby Simple code failing - Sanity check please?

Posted by Jeffrey Jones (Guest)
on 2013-01-16 10:16
(Received via mailing list)
Ahoi all

I am trying something very simple but it is failing so could someone
else check me?

Goal: Write a UTF encoded text file with some non-ascii text.

Code: https://gist.github.com/4545595

Result:

On Linux, no problem. a UTF-8 encoded file is created with jruby 1.7.1
and MRI.
On Windows with jruby 1.7.1 (version bundled with Torquebox) the text is
gibberish. MRI works correctly.

Could someone else try it on jruby and windows and confirm / refute if
this is a problem with that combination or if I am managing to miss
something?

Cheers

Jeff
Posted by Jeffrey Jones (Guest)
on 2013-01-18 05:51
(Received via mailing list)
More testing, have confirmed the issue and posted issue:
https://github.com/jruby/jruby/issues/502
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.