Posted to tcl by apn at Mon Nov 21 15:45:29 GMT 2016view raw

  1. Why does the following sample session not work? The example is almost
  2. exactly from the zlib manpage. The output from the stream is only 2 bytes (the zlib format header).
  3. % set strm [zlib stream compress]
  4. ::tcl::zlib::streamcmd_3
  5. % $strm put [encoding convertto utf-8 "abcd"]
  6. % $strm finalize
  7. % string length [$strm get]
  8. 2
  9. % $strm close