Something in rails causes File#each to throw InvalidByteSequenceError in 1.9 
mode
---------------------------------------------------------------------------------

                 Key: JRUBY-5960
                 URL: https://jira.codehaus.org/browse/JRUBY-5960
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6.3
            Reporter: Mat Schaffer
            Assignee: Thomas E Enebo


I'm not sure how to track this down, but something in rails is causing 
File#each in Jruby 1.9 mode to throw an exception when reading certain files 
(like jpegs). This means you can't really use send_file in a rails app on 1.9 
jruby.

For now here's a git repo that illustrates the problem. The rails apps contain 
nothing but the base generated code plus lib/task/read.rake which is the same 
as the Rakefile in the root that works fine.

It doesn't seem to be KCODE related since KCODE was "NONE" in all my test cases.

Have a look at https://github.com/matschaffer/jruby-encoding-testcase and run 
./runtests.sh with jruby in your PATH to see the effects.

--
This message is automatically generated by JIRA.
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