Skip Menu |

This queue is for tickets about the Filter CPAN distribution.

Report information
The Basics
Id: 53132
Status: resolved
Priority: 0/
Queue: Filter

Owner: RURBAN [...]
Requestors: user42 [...]

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

Subject: Filter::Decompress example WANT_GZIP_OR_ZLIB
Date: Mon, 28 Dec 2009 10:58:33 +1100
To: bug-Filter [...]
From: Kevin Ryde <user42 [...]>
Download (untitled) / with headers
text/plain 722b
In the Filter::Decompress example in the sources, the inflateInit could helpfully be made inflateInit (-WindowBits => MAX_WBITS() + WANT_GZIP_OR_ZLIB()) so as to accept both zlib format and gzip format. I tried the code with perl -MFilter::Decompress to run a compressed script and it silently did nothing -- until I hunted down to inflate() not liking the gzip header without a suitable WANT flag in the options. Since Compress::Zlib is supplied with perl 5.10, Filter::Decompress might even be installed ready to run, for cute use on .pl.gz files. Or was that how it was before and then taken away ... (Incidentally the "closure" version of Filter::Decompress may be missing a "my" for $err.)
Subject: Re: [ #53132] Filter::Decompress example WANT_GZIP_OR_ZLIB
Date: Fri, 30 Apr 2010 11:29:08 +1000
To: bug-Filter [...]
From: Kevin Ryde <user42 [...]>
Download (untitled) / with headers
text/plain 241b
I since realized Filter::Decompress is meant to go with the filtdef script, for a raw deflate stream. So instead of what I said before the files could just have comments cross-referencing each other so as to make clear what goes with what.
Download (untitled) / with headers
text/plain 124b
I didn't add -WindowBits => MAX_WBITS() + WANT_GZIP_OR_ZLIB() but I adjusted the usage docs a bit. See 1.46 -- Reini Urban

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

Please report any issues with to