String#inspect works incorrectly when KCODE is set
--------------------------------------------------

                 Key: JRUBY-1806
                 URL: http://jira.codehaus.org/browse/JRUBY-1806
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.x
         Environment: Latest JRuby 1.1b1
            Reporter: Vladimir Sizikov
         Attachments: string-inspect-kcode.patch

Consider the following example:

{noformat}
$KCODE="UTF-8"
puts "äöü".inspect
puts "\007äöüz\303".inspect
{noformat}

MRI prints:
"\"äöü\""
"\aäöüz\303"

JRuby prints:
"\303\244\303\266\303\274"
"\a\303\244\303\266\303\274z\303"

This also leads to one rubinius spec failure.

The proposed patch fixes the problem and the spec failure.

-- 
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

Reply via email to