Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5d785ab1e2f70a1b3bb30fc638c2c210e566cef1
Ticket: 218483ffffffffffffffffffffffffffffffffff
bug in "info complete" command called with binary strings
User & Date: nobody on 2000-10-26 01:01:06
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 689 Bug
    Version: 8.0p2
    SubmitDate: '1998-10-02'
    LastModified: '1999-08-06'
    Severity: MED
    Status: Released
    Submitter: hershey
    ChangedBy: hobbs
    OS: All
    OSVersion: NA
    Machine: NA
    FixedDate: '1999-08-06'
    FixedInVersion: 8.1
    ClosedDate: '2000-10-25'
    
    
    Hi,
    
    
    
    info complete [list 1 2 [format binary H 00]]
    
    
    
    used to return 0, because the completer was using the string based routines.
    
    This is a simple patch to fix the behavior:
    
    
    
    --- tcl8.0.3/generic/tclCmdIL.c Sat Aug  8 04:41:58 1998
    
    +++ tcl8.0.3.mine/generic/tclCmdIL.c    Thu Sep 10 09:32:17 1998
    
    @@ -762,19 +762,17 @@
    
         int objc;                  /* Number of arguments. */
    
         Tcl_Obj *CONST objv[];     /* Argument objects. */
    
     {
    
    -    char *command;
    
    -
    
         if (objc != 3) {
    
             Tcl_WrongNumArgs(interp, 2, objv, "command");
    
             return TCL_ERROR;
    
         }
    
    
    
    -    command = Tcl_GetStringFromObj(objv[2], (int *) NULL);
    
    -    if (Tcl_CommandComplete(command)) {
    
    +    if (TclObjCommandComplete(objv[2])) {
    
            Tcl_SetIntObj(Tcl_GetObjResult(interp), 1);
    
         } else {
    
            Tcl_SetIntObj(Tcl_GetObjResult(interp), 0);
    
         }
    
    +
    
         return TCL_OK;
    
     }
    
    
    
    This was fixed in 8.1 with the intro of Unicode and full
    binary support through all of Tcl and Tk.  Tcl was not
    fully binary-safe in 8.0. 
    -- 08/06/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.0p2"
  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:
    bug in "info complete" command called with binary strings
    
  11. type changed to: "Bug"