|
2001-04-19
| ||
| 04:42 | • Ticket [218992ffff] incorrect return value for "scan" command stat... artifact: 09732b27ff user: dgp | |
|
2000-10-26
| ||
| 08:33 | • Closed ticket [218992ffff]. artifact: 1a409b714b user: welch | |
| 01:09 | • New ticket [218992ffff]. artifact: b9c41e38bd user: nobody | |
incorrect return value for "scan" command
Closed / Fixed218992ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:09:03
OriginalBugID: 3700 Bug
Version: 8.2.2
SubmitDate: '1999-11-29'
LastModified: '1999-11-29'
Severity: SER
Status: Released
Submitter: techsupp
ChangedBy: hobbs
OS: Linux-Red Hat
OSVersion: GNU-Linux Red-Hat 5.2 and Mandrake 6.0
Machine: PC based Celeron
FixedDate: '1999-11-29'
FixedInVersion: 8.3b1
ClosedDate: '2000-10-25'
Name: Eric THIEBAUT
ReproducibleScript:
scan "= F" " = %\[TF\]" var ;# OK: return expected result: 1, with var set to "F"
scan "= f" " = %\[TF\]" var ;# BUG: return unexpected result: 1 (instead of 0), with var set to {}
ObservedBehavior:
The builtin command "scan" in Tcl-8.2.2 does not correctly behave with set of characters (see code sample). I have checked that Tcl-8.0 behaves as expected.
DesiredBehavior:
see comments in sample code
The CharSet matching in tclScan.c wasn't taking into account
the case where nothing matched a charset and we should finish.
This is fixed for 8.3b1.
-- 11/29/1999 hobbs
welch Closed ticket [218992ffff].
[History diff]2000-10-26 08:33:07
dgp Ticket [218992ffff]: 4 changes
[History diff]2001-04-19 04:42:21
Log in (anonymous is fine) to add a comment.