Zlib::GzipReader.each_line yields compressed data
-------------------------------------------------

                 Key: JRUBY-3232
                 URL: http://jira.codehaus.org/browse/JRUBY-3232
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
         Environment: OSX Leopard
% uname -a
Darwin macguffin.infloop.com 9.5.0 Darwin Kernel Version 9.5.0: Wed Sep  3 
11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386

            Reporter: ahobson
            Priority: Minor
         Attachments: test_zlib.patch

If I add the attached test cases to test/test_zlib.rb, it passes with MRI, but 
fails with jruby.

It fails both on linux with 1.1.6RC1 and on darwin with the trunk
linux% jruby -v
jruby 1.1.6RC1 (ruby 1.8.6 patchlevel 114) (2008-12-03 rev 8263) [amd64-java]
darwin% jruby -v
jruby 1.1.7 (ruby 1.8.6 patchlevel 114) (2008-12-11 rev 8313) [i386-java]


% jruby test/test_zlib.rb                       
Loaded suite test/test_zlib
Started
..FF......
Finished in 0.838891 seconds.

  1) Failure:
test_each(TestZlib) [test/test_zlib.rb:139]:
<"hello\n"> expected but was
<"\313H\315\311\311\347*\317/\312I\341\002\000\377]\305\304\f\000\000\000">.

  2) Failure:
test_each_line(TestZlib) [test/test_zlib.rb:126]:
<"hello\n"> expected but was
<"\313H\315\311\311\347*\317/\312I\341\002\000\377]\305\304\f\000\000\000">.

10 tests, 16 assertions, 2 failures, 0 errors

% ruby test/test_zlib.rb                      [1]
Loaded suite test/test_zlib
Started
..........
Finished in 0.104118 seconds.

10 tests, 18 assertions, 0 failures, 0 errors


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