diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | doc/zlib.n | 7 | ||||
-rw-r--r-- | tests/zlib.test | 8 |
3 files changed, 15 insertions, 7 deletions
@@ -1,3 +1,10 @@ +2012-05-31 Jan Nijtmans <nijtmans@users.sf.net> + + * generic/tclZlib.c: [Bug 3530536]: zlib-7.4 fails on IRIX64 + * tests/zlib.test: + * doc/zlib.n: Document that [stream checksum] doesn't do + what's expected for "inflate" and "deflate" formats + 2012-05-31 Donal K. Fellows <dkf@users.sf.net> * library/safe.tcl (safe::AliasFileSubcommand): Don't assume that @@ -200,9 +200,10 @@ data corruption. .TP \fB\-checksum\fR . -This read-only option, valid for both compressing and decompressing -transforms, gets the current checksum for the uncompressed data that the -compression engine has seen so far. The compression algorithm depends on what +This read-only option gets the current checksum for the uncompressed data +that the compression engine has seen so far. It is valid for both +compressing and decompressing transforms, but not for the raw inflate +and deflate formats. The compression algorithm depends on what format is being produced or consumed. .TP \fB\-header\fR diff --git a/tests/zlib.test b/tests/zlib.test index fb94c0a..8212082 100644 --- a/tests/zlib.test +++ b/tests/zlib.test @@ -105,20 +105,20 @@ test zlib-7.4 {zlib stream} zlib { } {{} 1 abcdeEDCBA} test zlib-7.5 {zlib stream} zlib { set s [zlib stream gzip] - $s put -finalize abcdeEDCBA + $s put -finalize abcdeEDCBA.. set data [$s get] set result [list [$s get] [format %x [$s checksum]]] $s close lappend result [zlib gunzip $data] -} {{} ffffffffe3b38816 abcdeEDCBA} +} {{} 69f34b6a abcdeEDCBA..} test zlib-7.6 {zlib stream} zlib { set s [zlib stream gunzip] - $s put -finalize [zlib gzip abcdeEDCBA] + $s put -finalize [zlib gzip abcdeEDCBA..] set data [$s get] set result [list [$s get] [format %x [$s checksum]]] $s close lappend result $data -} {{} ffffffffe3b38816 abcdeEDCBA} +} {{} 69f34b6a abcdeEDCBA..} test zlib-8.1 {zlib transformation} -constraints zlib -setup { set file [makeFile {} test.gz] |