Skip Menu |
 

This queue is for tickets about the PerlIO-gzip CPAN distribution.

Report information
The Basics
Id: 90480
Status: open
Priority: 0/
Queue: PerlIO-gzip

People
Owner: Nobody in particular
Requestors: rbuels [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.18
Fixed in: (no value)



Subject: does not completely read block-compressed files
Download (untitled) / with headers
text/plain 562b
These two commands should have the same output, but they don't: wget -q -O - ftp://ftp.ncbi.nlm.nih.gov/snp/organisms/human_9606/VCF/00-All.vcf.gz | gunzip -c | head -20000 | tail -1 perl -MPerlIO::gzip -E 'open( my $f, "-|:gzip", "wget", "-qO", "-", "ftp://ftp.ncbi.nlm.nih.gov/snp/organisms/human_9606/VCF/00-All.vcf.gz"); print while <$f>' | head -20000 | tail -1 PerlIO::gzip seems to stop reading that file a little before line 500. The file in question was probably compressed with Heng Li's bgzip utility: http://samtools.sourceforge.net/tabix.shtml
Analogous to the -MultiStream option in IO::Uncompress::Gunzip. Should probably be on by default.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.