|
2001-04-20
| ||
| 02:36 | • Ticket [219114ffff] Tcl_WrongNumArgs adds extra space for objc = 0 status st... artifact: 6600ff6e0d user: dgp | |
|
2000-10-26
| ||
| 08:34 | • Closed ticket [219114ffff]. artifact: f1258ca434 user: welch | |
| 01:11 | • New ticket [219114ffff]. artifact: c3c4f2816b user: nobody | |
Tcl_WrongNumArgs adds extra space for objc = 0
Closed / Fixed219114ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:11:00
OriginalBugID: 6078 Bug
Version: 8.3.1
SubmitDate: '2000-08-03'
LastModified: '2000-08-07'
Severity: LOW
Status: Released
Submitter: awb
ChangedBy: ericm
OS: All
FixedDate: '2000-08-07'
FixedInVersion: 8.4a2
ClosedDate: '2000-10-25'
If Tcl_WrongNumArgs is called with 0 for objc, an unnecessary space
is generated in the text representing the correct form of the
command. Here's an example from a test case for code using the following
call to Tcl_WrongNumArgs:
if (objc < 2) {
Tcl_WrongNumArgs(interp, 0, objv, "<fooHandle> cmd ?arg ...?");
return TCL_ERROR;
}
==== fooCmd-1.1 fooCmdProc FAILED
---- Result was:
1 {wrong # args: should be " <fooHandle> cmd ?arg ...?"}
---- Result should have been:
1 {wrong # args: should be "<fooHandle> cmd ?arg ...?"}
==== fooCmd-1.1 FAILED
I fixed this for 8.4a2, and added a test function and tests to check it. Thanks for finding and reporting this bug.
- eric
-- 08/07/2000 ericm
welch Closed ticket [219114ffff].
[History diff]2000-10-26 08:34:57
dgp Ticket [219114ffff]: 3 changes
[History diff]2001-04-20 02:36:36
Log in (anonymous is fine) to add a comment.