Symbol#encoding not consistent with MRI in 1.9 mode
---------------------------------------------------

                 Key: JRUBY-5911
                 URL: https://jira.codehaus.org/browse/JRUBY-5911
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.6.3
            Reporter: Robin Stocker
            Priority: Minor


MRI (1.9.2p180 (2011-02-18 revision 30909)):

{code}
% ruby -e 'puts :asdf.encoding, :hallö.encoding'
US-ASCII
UTF-8
{code}

JRuby (jruby 1.6.3 (ruby-1.9.2-p136) (2011-07-07 965162f) (Java HotSpot(TM) 
64-Bit Server VM 1.6.0_24)):

{code}
% ruby --1.9 -e 'puts :asdf.encoding, :hallö.encoding'
ASCII-8BIT
ASCII-8BIT
{code}

I was bitten by this in a rails application where the keys of 
I18n.translate("foo") are used as values of a select element, leading to the 
dreaded "incompatible character encodings: ASCII-8BIT and UTF-8".

--
This message is automatically generated by JIRA.
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


Reply via email to