Overview
| Artifact ID: | c3c4f2816b6ecc57dbc27d52b9c18ec74f6f5b9b |
|---|---|
| Ticket: | 219114ffffffffffffffffffffffffffffffffff
Tcl_WrongNumArgs adds extra space for objc = 0 |
| User & Date: | nobody on 2000-10-26 01:11:00 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
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 - foundin changed to: "obsolete: 8.3.1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to: "Tcl_WrongNumArgs adds extra space for objc = 0"
- type changed to: "Bug"