Posted to tcl by apn at Mon Nov 21 15:45:29 GMT 2016view raw
- Why does the following sample session not work? The example is almost
- exactly from the zlib manpage. The output from the stream is only 2 bytes (the zlib format header).
- % set strm [zlib stream compress]
- ::tcl::zlib::streamcmd_3
- % $strm put [encoding convertto utf-8 "abcd"]
- % $strm finalize
- % string length [$strm get]
- 2
- % $strm close