[1.9] String#encode does not support "locale" as an encoding
------------------------------------------------------------
Key: JRUBY-5406
URL: http://jira.codehaus.org/browse/JRUBY-5406
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.6RC1
Reporter: Dominik Honnef
Even though {{Encoding.find("locale")}} works, {{"locale"}} cannot be used
directly in {{String#encode}}.
Example:
{quote}
s = "รถ".encode("ISO-8859-1")
s.encode!("locale")
# >> org/jruby/RubyString.java:7068:in `encode_bang': code converter not found
(locale) (Encoding::ConverterNotFoundError)
# from /tmp/foo.rb:6:in `(root)'
{quote}
CRuby does support this usage of {{"locale"}}.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email