<i>bug in "info complete" command called with binary strings</i>.
by
.
D 2000-10-26T01:01:06
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s689\sBug\nVersion:\s8.0p2\nSubmitDate:\s'1998-10-02'\nLastModified:\s'1999-08-06'\nSeverity:\sMED\nStatus:\sReleased\nSubmitter:\shershey\nChangedBy:\shobbs\nOS:\sAll\nOSVersion:\sNA\nMachine:\sNA\nFixedDate:\s'1999-08-06'\nFixedInVersion:\s8.1\nClosedDate:\s'2000-10-25'\n\n\nHi,\n\n\n\ninfo\scomplete\s[list\s1\s2\s[format\sbinary\sH\s00]]\n\n\n\nused\sto\sreturn\s0,\sbecause\sthe\scompleter\swas\susing\sthe\sstring\sbased\sroutines.\n\nThis\sis\sa\ssimple\spatch\sto\sfix\sthe\sbehavior:\n\n\n\n---\stcl8.0.3/generic/tclCmdIL.c\sSat\sAug\s\s8\s04:41:58\s1998\n\n+++\stcl8.0.3.mine/generic/tclCmdIL.c\s\s\s\sThu\sSep\s10\s09:32:17\s1998\n\n@@\s-762,19\s+762,17\s@@\n\n\s\s\s\s\sint\sobjc;\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s/*\sNumber\sof\sarguments.\s*/\n\n\s\s\s\s\sTcl_Obj\s*CONST\sobjv[];\s\s\s\s\s/*\sArgument\sobjects.\s*/\n\n\s{\n\n-\s\s\s\schar\s*command;\n\n-\n\n\s\s\s\s\sif\s(objc\s!=\s3)\s{\n\n\s\s\s\s\s\s\s\s\sTcl_WrongNumArgs(interp,\s2,\sobjv,\s"command");\n\n\s\s\s\s\s\s\s\s\sreturn\sTCL_ERROR;\n\n\s\s\s\s\s}\n\n\n\n-\s\s\s\scommand\s=\sTcl_GetStringFromObj(objv[2],\s(int\s*)\sNULL);\n\n-\s\s\s\sif\s(Tcl_CommandComplete(command))\s{\n\n+\s\s\s\sif\s(TclObjCommandComplete(objv[2]))\s{\n\n\s\s\s\s\s\s\s\sTcl_SetIntObj(Tcl_GetObjResult(interp),\s1);\n\n\s\s\s\s\s}\selse\s{\n\n\s\s\s\s\s\s\s\sTcl_SetIntObj(Tcl_GetObjResult(interp),\s0);\n\n\s\s\s\s\s}\n\n+\n\n\s\s\s\s\sreturn\sTCL_OK;\n\n\s}\n\n\n\nThis\swas\sfixed\sin\s8.1\swith\sthe\sintro\sof\sUnicode\sand\sfull\nbinary\ssupport\sthrough\sall\sof\sTcl\sand\sTk.\s\sTcl\swas\snot\nfully\sbinary-safe\sin\s8.0.\s\n--\s08/06/1999\shobbs
J foundin obsolete:\s8.0p2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title bug\sin\s"info\scomplete"\scommand\scalled\swith\sbinary\sstrings
J type Bug
K 218483ffffffffffffffffffffffffffffffffff
U nobody
Z c4a4fc31635aec418856234ae5c8f0ba