Matt Hauck created JRUBY-6320:
---------------------------------

             Summary: "bom|utf-8" File encoding not supported in 1.9 mode
                 Key: JRUBY-6320
                 URL: https://jira.codehaus.org/browse/JRUBY-6320
             Project: JRuby
          Issue Type: Bug
          Components: Ruby 1.9.2
    Affects Versions: JRuby 1.6.5
         Environment: Mac OSX Lion
Jruby 1.6.5.1
JRUBY_OPTS="--1.9"
            Reporter: Matt Hauck
            Assignee: Thomas E Enebo
            Priority: Minor


File.open supports option "r:bom|utf-8" in 1.8 mode, but not in 1.9 mode. 

I came across this trying to use the Hoe library (cf. 
https://github.com/seattlerb/hoe/blob/master/lib/hoe.rb, function read_utf), 
which works in 1.8, but not in 1.9. 

`File.open 'Manifest.txt', "r:bom|utf-8"` will yield the following error stack:

ArgumentError: unknown encoding name - bom|utf-8
        from org/jruby/RubyIO.java:1066:in `set_encoding'
        from org/jruby/RubyFile.java:464:in `initialize'
        from org/jruby/RubyIO.java:1111:in `open'


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


Reply via email to