Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.7.0.RC2
-
Component/s: Encoding
-
Labels:None
-
Environment:Mac OS X 10.7.3
-
Number of attachments :
Description
the bug is that jrubys String#encode! doesn't handle the case where the first and only argument is the hash of options.
To clarify, when String#encode! is called with no arguments or only options as the argument, it should behave as follows: if Encoding.default_internal is not nil, use that as the destination encoding. If it is nil, do nothing.