Bug in scan command
Closed / Fixed218929ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:08:01
OriginalBugID: 2804 Bug
Version: 8.2
SubmitDate: '1999-09-16'
LastModified: '1999-09-20'
Severity: MED
Status: Released
Submitter: techsupp
ChangedBy: hobbs
RelatedBugIDs: 2714 2834
OS: All
OSVersion: 4.oe
Machine: Other
FixedDate: '1999-09-20'
FixedInVersion: 8.2.1
ClosedDate: '2000-10-25'
Name:
Evelino Bomitali
Extensions:
none
Comments:
The documentation in the doc distribution directory states that scan
should have at least a variable in which a result could be stored as in
"scan string format varName ?varName ...?" . However the message
returned by Tcl_ScanObjCmd allows for no variables as in "string format
?varName varName ...?". I sticked to the previous (8.0) release and
required at least one variable.
ReproducibleScript:
I run make test in the distribution of tcl 8.2. The test scan 3.4 fails
due to the command "scan {] %d"
ObservedBehavior:
% scan {} %d
unable to alloc 0 bytes
Abort process (core dumped)
DesiredBehavior:
% scan {} %d
wrong # args: should be "scan string format ?varName varName ...?"
Patch:
495c495,496
< if (objc < 4) {
---
>
> if (objc < 3) {
497c498
< "string format varName ?varName ...?");
---
> "string format ?varName varName ...?");
PatchFiles:
tclScan.c
Fixed the alloc bug in 8.2.1.
-- 09/20/1999 hobbs
welch Closed ticket [218929ffff].
[History diff]2000-10-26 08:32:13
dgp Ticket [218929ffff]: 3 changes
[History diff]2001-04-19 03:27:56
Log in (anonymous is fine) to add a comment.