Alex Khesin created JRUBY-6323: ---------------------------------- Summary: JRuby does not pay attention to either -U or LANG in determining encoding for ARGV (it is always ASCII-8BIT) Key: JRUBY-6323 URL: https://jira.codehaus.org/browse/JRUBY-6323 Project: JRuby Issue Type: Bug Components: Ruby 1.9.3 Affects Versions: JRuby 1.6.5, JRuby 1.6.6, JRuby 1.7 Environment: Linux 2.6.38 / Ubuntu 10.04.1 LTS Reporter: Alex Khesin Assignee: Thomas E Enebo
Using MRI Ruby 1.9.3: $ LANG=en_US ruby -e 'puts ARGV[0].encoding' foo ISO-8859-1 $ LANG=en_US.utf8 ruby -e 'puts ARGV[0].encoding' foo UTF-8 $ LANG=en_US ruby -U -e 'puts ARGV[0].encoding' foo UTF-8 Using JRuby (tested in 1.6.5, 1.6.6.dev, 1.7.0.dev): $ LANG=en_US jruby --1.9 -e 'puts ARGV[0].encoding' foo ASCII-8BIT $ LANG=en_US.utf8 jruby --1.9 -e 'puts ARGV[0].encoding' foo ASCII-8BIT $ LANG=en_US jruby --1.9 -U -e 'puts ARGV[0].encoding' foo ASCII-8BIT -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.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