Hao Yuan created JRUBY-6572: ------------------------------- Summary: File.open with 'b' options should always 'gets' string with 'ASCII-8BIT' encoding, regardless the value of 'Encoding.default_internal' Key: JRUBY-6572 URL: https://jira.codehaus.org/browse/JRUBY-6572 Project: JRuby Issue Type: Bug Components: Core Classes/Modules, Ruby 1.9.2 Affects Versions: JRuby 1.6.7, JRuby 1.6.6 Environment: 2.6.18-274.12.1.el5.centos Reporter: Hao Yuan Attachments: run_this_reappear.rb, zh_cn-utf8.txt
If I set Encoding.default_internal to 'utf-8', I can't read binary from file even I open file with the 'b' option. The File.gets always return a string encoding with "Encoding.default_internal". -- 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