Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-16
20:32 • Ticket [218483ffff] bug in "info complete" command called with binary ... artifact: 2714aea9fe user: dgp
2000-10-26
08:23 • Closed ticket [218483ffff]. artifact: e64c8d0fe4 user: welch
01:01 • New ticket [218483ffff]. artifact: 5d785ab1e2 user: nobody

bug in "info complete" command called with binary strings

Closed / Fixed218483ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:01:06
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
welch Closed ticket [218483ffff]. [History diff]2000-10-26 08:23:17
dgp Ticket [218483ffff]: 4 changes [History diff]2001-04-16 20:32:38
Log in (anonymous is fine) to add a comment.