| 1 |
Revision history for Perl extension PerlIO::Gzip. |
| 2 |
|
| 3 |
0.01 Sat Feb 3 13:51:15 2001 |
| 4 |
- original version; created by h2xs 1.21 with options |
| 5 |
-c -n Layer::Gzip /usr/local/include/sfio.h |
| 6 |
|
| 7 |
0.02 Sunday |
| 8 |
parse gzip header, 40 regression tests |
| 9 |
|
| 10 |
0.03 Tue Feb 6 18:50:01 GMT 2001 |
| 11 |
Change name from Layer::Gzip to PerlIO::gzip following feedback on p5p. |
| 12 |
Add checks to Makefile.PL to ensure you have 5.7.0 [or later :-)] and |
| 13 |
PerlIO configure. |
| 14 |
|
| 15 |
0.04 Tue Feb 6 23:56:16 GMT 2001 |
| 16 |
Added autopop mode. There must be a better name for it. |
| 17 |
Changed order in PerlIOGzip_pushed to call PerlIObuf first (D'oh) |
| 18 |
and to pop without error in autopop mode with a write. |
| 19 |
|
| 20 |
0.05 Sun Feb 11 22:12:42 GMT 2001 |
| 21 |
Mmm. CRCs at the ends of files - maybe I should check them? |
| 22 |
Now gives error on close if the z_stream is at the end and either |
| 23 |
the CRC or the length recorded in the gzip trailer is wrong. Doesn't |
| 24 |
try these checks for files with no gzip header. |
| 25 |
PROTOTYPES: DISABLE in the .xs |
| 26 |
|
| 27 |
0.06 Fri Feb 16 23:59:18 GMT 2001 |
| 28 |
We have compression! |
| 29 |
Hmm. Didn't check the return from close on perl.gz - transpires there |
| 30 |
was a bug in my code to read the length of uncompressed data from the |
| 31 |
gzip file |
| 32 |
Hmm. Why was I passing *my* args down to the PerlIOBuf I'm a derived |
| 33 |
class of? On the other hand, why not? ISA or HASA? My args, HASA, I |
| 34 |
guess, so I'll give it NULL args. |
| 35 |
|
| 36 |
0.07 Sun Feb 18 23:21:48 GMT 2001 |
| 37 |
s/to/too/ in the BARF message in Makefile.PL [1 character change. Look |
| 38 |
at the paperwork that generated :-)] |
| 39 |
use XSLoader rather than Dynaloader. |
| 40 |
|
| 41 |
0.08 Mon Feb 19 21:14:45 GMT 2001 |
| 42 |
fix bug in get_more's return value that basically prevented you from |
| 43 |
reading any header with embedded filename from an unbuffered layer. |
| 44 |
[Obscure, but it's supposed to work with unbuffered] However, still |
| 45 |
problems with unread, so you can't inflate any gzip file with an |
| 46 |
original filename (or comment) in the header. This is related to the |
| 47 |
/* fix me */ mentioned in perlio.c. Hopefully it will be soon. |
| 48 |
|
| 49 |
0.09 Sat Apr 21 16:14:54 BST 2001 |
| 50 |
The perlio.c layer API has changed by the 5.7.1 release. 0.08 and earlier |
| 51 |
won't compile - 0.09 mainly consists of necessary changes to function |
| 52 |
prototypes and the layer struct. 5.7.1 contains a known bug - when |
| 53 |
opening a file with layers specified, failure of a layer to push is |
| 54 |
supposed to cause the open to fail. In 5.7.0 it did. In 5.7.1 it doesn't. |
| 55 |
Commented the tests that will fail due to this bug. |
| 56 |
Attempted to detect the "OS" type at compile time to set the default |
| 57 |
OS for the gzip header. |
| 58 |
|
| 59 |
0.10 Sun Aug 26 13:05:25 BST 2001 |
| 60 |
By 5.7.2 it seems that the pushed argument is passed in as &sv_undef |
| 61 |
rather than NULL. I wasn't testing SvOK() and was getting use of |
| 62 |
uninitialized value errors. |
| 63 |
|
| 64 |
0.11 Mon Oct 29 20:28:38 GMT 2001 |
| 65 |
perlio.c layer API has changed again with the addition of a dup() |
| 66 |
function for cloning layers across. (both within and across ithreads) |
| 67 |
Currently I don't want to pretend that PerlIO::gzip can cope with this, |
| 68 |
hence it will croak. Fixing this properly is a TODO. |
| 69 |
|
| 70 |
0.12 Mon Mar 18 21:03:52 GMT 2002 |
| 71 |
Catch up with the 5.7.3 perlio API changes. |
| 72 |
|
| 73 |
0.13 Tue Jul 2 21:55:08 BST 2002 |
| 74 |
Richard Clamp sent me a complete patch to catch up with the 5.8.0-RC2 |
| 75 |
perlio API changes, and sprinkles C<pTHX>ie dust to make it compile for |
| 76 |
a threaded perl. (But please don't create any threads or fork on Win32 |
| 77 |
while a gzip layer is active, as bad things will happen (duplicate |
| 78 |
frees)) |
| 79 |
|
| 80 |
0.14 Fri Jul 19 23:19:24 BST 2002 |
| 81 |
Whoops. Same undefined behaviour bug in my argument passing code as |
| 82 |
PerlIO::subfile. No surprise there, as PerlIO::subfile got the code |
| 83 |
from PerlIO::gzip. So I'll migrate the fix back from there to here. |
| 84 |
Well spotted valgrind. |
| 85 |
Use valgrind. http://developer.kde.org/~sewardj/ |
| 86 |
It's far more effective than coffee. |
| 87 |
|
| 88 |
0.15 Tue Jul 15 21:07:11 BST 2003 |
| 89 |
gzip.xs was using PerlIOBuf_close, which isn't on the list of exported |
| 90 |
symbols. Hence gzip.xs won't link on platforms such as AIX and Windows. |
| 91 |
This is fixed in 5.8.1 - Inline the code for PerlIOBuf_close when |
| 92 |
building for 5.8.0. |
| 93 |
|
| 94 |
0.16 Fri Jun 25 09:38:28 BST 2004 |
| 95 |
Merge this in from Sun Nov 4 15:27:24 GMT 2001: |
| 96 |
Split the tests from test.pl into t/read.t, t/write.t |
| 97 |
use Test::More; [Happy Schwern? :-)] and loop over several buffering |
| 98 |
possibilities. |
| 99 |
|
| 100 |
Actually unlink the test perl.gz file. |
| 101 |
|
| 102 |
0.17 Wed Jun 30 18:29:30 BST 2004 |
| 103 |
Track down the cause of the problem reported by some Linux users. It's |
| 104 |
another manifestation of the core perlio bug, whereby perlio loses data |
| 105 |
if you push another layer onto a file handle with unread data. In this |
| 106 |
case the layer push is happening on some Linux systems because the stdio |
| 107 |
layer isn't supporting Perl's fast buffer snooping, presuambly because |
| 108 |
glibc has decided to use mmap() for the file. Work around is for |
| 109 |
PerlIO::gzip to push its buffering layer before it calls unread, which |
| 110 |
is a somewhat messy hack, but works. |
| 111 |
This means that all the TODO tests can be taken out, as they now pass. |
| 112 |
|
| 113 |
Fix small typo in read.t |
| 114 |
|
| 115 |
0.18 Sun Oct 1 22:08:32 BST 2006 |
| 116 |
Patch from alexchorny [at] gmail.com (#21469) - write.t fails |
| 117 |
(I had the skip arguments wrong) |
| 118 |
TODO 2 tests in read.t which fail. I'm infering that this is because |
| 119 |
:stdio opens in text mode, and there's no way to tell it to open in |
| 120 |
binary mode. Time to consult p5p. |
| 121 |
|
| 122 |
0.19 Sat Feb 28 11:31:29 CET 2015 |
| 123 |
Two patches from zefram [at] fysh.org |
| 124 |
(#92412) - usesfio config removal breaks |
| 125 |
And whose fault was this anyway? (See core commit 0b39d4dc4ab83828) |
| 126 |
(#92031) - printf format mismatch |
| 127 |
|
| 128 |
0.20 Wed Jun 21 21:29:59 CEST 2017 |
| 129 |
Patch from Slaven to fix test skip count on Win32 (#76335) |
| 130 |
Really this should have been in 0.19. |