Skip to content
Tcl Source Code History Of Ticket 218161
Login

History Of Ticket 218161

Artifacts Associated With Ticket 218161

  1. Ticket change [b827c1c752] (rid 128924) by nobody on 2000-10-26 00:53:56:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2205 Bug
      Version: 8.0.5
      SubmitDate: '1999-06-11'
      LastModified: '1999-11-07'
      Severity: SER
      Status: Closed
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Other
      OSVersion: UnixWare (Intel)
      Machine: NA
      FixedDate: '2000-10-25'
      ClosedDate: '1999-11-07'
      
      
      Name:
      David Bradsher
      
      CustomShell:
      none
      
      ReproducibleScript:
      # script breaks here
            return 1
          --------------------
          C pgm:
          
            char   interp_res[256];
              .
              .
            if ( Tcl_EvalFile( mp_tcl_interp, p_filename ) != TCL_OK ) {
              .
              .
            }  
            strcpy( interp_val, mp_tcl_interp->result );
            return( atoi( interp_val ) );
      
      ObservedBehavior:
      The C application had been working while linked to version 7.4 of the
          Tcl libraries.  For the above instance, the C routine would return an
          integer '1' when the script terminated normally with "return 1".  With
          8.0.5, the result string has length 0, which atoi() translates to '0'.
      
      DesiredBehavior:
      The return from Tcl_EvalFile() should be the same as with version 7.4.
      
      
      
      The desired behavior for this is misguided due to the fact that
      8.0 uses Tcl_Obj's throughout.  It is likely in this case that
      the result from Tcl_EvalFile, if 1, will be stored in the result
      as an Tcl integer object, and thus 'result' char* will be empty
      until it is requested as a string.  This is noted in the porting
      docs.  The user should use Tcl_GetStringResult, which works in
      Tcl7 and Tcl8. 
      -- 11/07/1999 hobbs
      
    4. foundin initialized to: "final: 8.0.5"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "Tcl_EvalFile() returns empty result string"
    11. type initialized to: "Bug"
  2. Ticket change [f9686350ae] (rid 91704) by welch on 2000-10-26 08:15:57:

    1. closedate changed to: "2000-10-26T01:15:57"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [537ec05f91] (rid 93769) by dgp on 2001-04-21 02:37:44:

    1. closedate changed to: "2001-04-20T19:37:44"
    2. closer changed to: "dgp"
    3. resolution changed to: "Invalid"
    4. subsystem changed to: "45. Parsing and Eval"