Issue Type: Bug Bug
Affects Versions: JRuby 1.7.0.RC2
Assignee: Unassigned
Components: Extensions, Ruby 1.9.3
Created: 09/Oct/12 1:09 PM
Description:
#!/usr/bin/env ruby -w

require 'zlib'

in_file = File.join('/Users/enebo/work/piet/images/nfib.gif')
out_file = 'nfib.gif'
gz_file = 'nfib.gif.gz'
chunk_size = 2**16

Zlib::GzipWriter.open(gz_file) do |gz|
  File.open(in_file) do |f|
    gz.write(f.read(chunk_size)) until f.eof?
  end
end

Zlib::GzipReader.open(gz_file) do |gz|
  File.open(out_file, 'w') do |f|
    f.write(gz.read(chunk_size)) until gz.eof?
  end
end

We generate bad stuff and MRI19 works fine.

Fix Versions: JRuby 1.7.0
Project: JRuby
Priority: Blocker Blocker
Reporter: Thomas E Enebo
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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