Tk Library Source Code

View Ticket
Login
Ticket UUID: 914279
Title: crc::crc32 and Trf
Type: Bug Version: None
Submitter: miketm Created on: 2004-03-11 17:05:06
Subsystem: crc Assigned To: patthoyts
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2004-04-01 06:01:59
Resolution: Fixed Closed By: patthoyts
    Closed on: 2004-03-31 23:01:59
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
User Comments: patthoyts added on 2004-04-01 06:01:59:
Logged In: YES 
user_id=202636

OK Fixed this and I'll check for other similar problems when
using Trf commands.