ARGF.binmode only changes the mode for the current file
-------------------------------------------------------

                 Key: JRUBY-4520
                 URL: http://jira.codehaus.org/browse/JRUBY-4520
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules, RubySpec, Windows
    Affects Versions: JRuby 1.4
            Reporter: Vladimir Sizikov


Invoking ARGF.binmode changes the mode only for the current file, leaving the 
rest of the files in the default mode, which is different from what MRI does.

This leads to RubySpec failure on Windows:

{noformat}
D:\work\jruby-dev\rubyspec.git>mspec -t j core\argf\binmode_spec.rb
jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2010-01-24 14f1e49) (Java 
HotSpot(TM) Client VM 1.6.0_18) [x86-java]
..F

1)
ARGF.binmode puts alls subsequent stream reading through ARGF into binmode 
FAILED
Expected "test\n"
 to equal "test\r\n"

D:/work/jruby-dev/rubyspec.git/core/argf/binmode_spec.rb:34
D:/work/jruby-dev/rubyspec.git/core/argf/binmode_spec.rb:30
D:/work/jruby-dev/rubyspec.git/core/argf/binmode_spec.rb:3
D:/work/jruby-dev/rubyspec.git/core/argf/binmode_spec.rb:55:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8
{noformat}


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