case `file -L #{file}`
when /gzip/
# ios = Zlib::GzipReader.new File.open(file, mode, options)
- ios = IO.popen("zcat #{file}")
+ ios = IO.popen("gzip -cd #{file}")
when /bzip/
# ios = Bzip2::Reader.new File.open(file, mode, options) # TODO this method is buggy, investigate
ios = IO.popen("bzcat #{file}")