| Description: |
When Trf is installed the data starting with the dash ('-')
lead to an error and end of otions option (--) doesn't work
either Examples:
set value "-hello world"
set x [ ::crc::crc32 $value ]
produces:
Error in startup script: bad option -hello world: must be
-filename, -format, -implementation or -seed
while executing
"::crc::crc32 $value "
set x [ ::crc::crc32 -- $value ]
produces:
Error in startup script: crc-zlib: wrong # args, all options
require an argument
while executing
"crc-zlib $s"
(procedure "crc::Crc32_trf" line 11)
invoked from within
"$impl [lindex $args 0] $seed"
(procedure "::crc::crc32" line 53)
invoked from within
"::crc::crc32 -- $value "
Changing line 167 in crc32.tcl (tcllib-1.6) from
binary scan [crc-zlib $s] i r
to
binary scan [crc-zlib -- $s] i r
solves the problem
|