Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. 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
    
    
    
  4. foundin changed to: "obsolete: 8.3.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "Tcl_WrongNumArgs adds extra space for objc = 0"
  11. type changed to: "Bug"