utf-8 string becomes macroman on os x
-------------------------------------

                 Key: JRUBY-3576
                 URL: http://jira.codehaus.org/browse/JRUBY-3576
             Project: JRuby
          Issue Type: Bug
         Environment: jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-03-16 rev 
9419) [x86_64-java]
Darwin FI-BP-749.local 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 
PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386

            Reporter: Jari Bakken
            Assignee: Thomas E Enebo



$ ruby -e 'puts "æåø"' | xxd
0000000: c3a6 c3a5 c3b8 0a                        .......

$ jruby -e 'puts "æåø"' | xxd
0000000: be8c bf0a                                ....

$ jruby -e 'puts "æåø"' | iconv -f macroman -t utf8 | xxd 
0000000: c3a6 c3a5 c3b8 0a                        .......

$ jruby -J-Dfile.encoding=utf8 -e 'puts "æåø"' | xxd    
0000000: c3a6 c3a5 c3b8 0a                        .......

$ jruby -v -r java -e 'p java.lang.System.getProperty("file.encoding")'
jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-03-16 rev 9419) [x86_64-java]
"MacRoman"
$  


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