Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1113fa053679076b6766243dc6febe2e68567bc4
Ticket: 1008314fffffffffffffffffffffffffffffffff
Tcl_*SetVar* mishandle TCL_LIST_ELEMENT
User & Date: dgp on 2004-08-12 22:26:31
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    The TclPtrSetVar() routine processes
    the TCL_LIST_ELEMENT flag only
    when the TCL_APPEND_VALUE
    flag is also set.  This is an error that
    was introduced in revision 1.32 of
    tclVar.c.
    
    For example,
    
    Tcl_SetVar(i, "x", "a b", TCL_LIST_ELEMENT);
    
    will set the value of x to be "a b" and
    not "{a b}" as it should according to the
    docs.
    
    The public routine Tcl_SetErrorCode() can
    also be used to demo this bug.  In particular
    
    Tcl_SetErrorCode(i, "{", NULL);
    
    will store a value in ::errorCode that is not
    a valid Tcl list.
    
    
  4. foundin changed to: "obsolete: 8.4.7"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "07. Variables"
  10. title changed to: "Tcl_*SetVar* mishandle TCL_LIST_ELEMENT"
  11. type changed to: "Bug"