Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 0.9.0
-
Fix Version/s: JRuby 0.9.9
-
Component/s: Java Integration
-
Labels:None
-
Environment:Latest Ubuntu, Java 1.5.0_06, latest JRuby
-
Number of attachments :
Description
If I build up a string in JRuby, some of which comes out of the Java libraries, there are anomalies. In the attached file I parse a chunk of XML then serialize it again out of the DOM. It contains some non-ASCII characters. If I puts it to STDOUT, it is converted to UTF-8. If I write it to a file, it is apparently broken.
This patch does fix your test case and also allows ant test to run. Unfortunately, it breaks rubygems.