Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Scan command fails on large hex/octal #s

Closed / Fixed412696ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2001-03-31 14:04:40
The "scan" command reports MAXLINT (strto[u]l's error
return) for any hex or octal value above 0xFFFFFFF. 
This bug is still present in 8.4a2.  I am submitting a
"diff" file for TclScan.c.
dmhqueensplain2001-03-31 21:04:41
File Added - 4809: tclScan.diff
hobbs Ticket [412696ffff]: 2 changes [History diff]2001-08-07 07:28:51
andreas_kupries Ticket [412696ffff]: 2 changes [History diff]2001-08-25 00:52:22
hobbsplain2001-09-20 07:23:19
File Added - 10992: scan.diff

Logged In: YES 
user_id=72656

This actually changes the behavior of scan, and no longer 
passes the test suite - to not allow negative numbers in %o 
and %x.  Attached is a possible alternative patch.
hobbsplain2001-09-20 08:14:01
Logged In: YES 
user_id=72656

fixed in 8.4a4cvs and core-8-3-1-branch.
Log in (anonymous is fine) to add a comment.

Attachments: