.
D 2000-10-26T00:53:35
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s2052\sBug\nVersion:\s8.1\nSubmitDate:\s'1999-05-12'\nLastModified:\s'1999-09-15'\nSeverity:\sMED\nStatus:\sClosed\nSubmitter:\spat\nChangedBy:\shobbs\nOS:\sSunOS\nOSVersion:\s5.6\nMachine:\sSparc\nFixedDate:\s'2000-10-25'\nClosedDate:\s'1999-09-15'\n\n\nName:\nPrasad\sA.\sChodavarapu\n\nCustomShell:\n--threads-enabled\n\nReproducibleScript:\n#include\s<tcl.h>\n\s\s\s\s#include\s<iostream.h>\n\s\s\s\s#include\s<assert.h>\n\s\s\s\s\n\s\s\s\sint\smain(int\sargc,\schar*\sargv[])\s{\n\s\s\s\s\s\sTcl_Interp*\s_interp\s=\sTcl_CreateInterp();\n\s\s\s\s\s\sassert(_interp);\n\s\s\s\s\s\s//Tcl_FindExecutable(argv[0]);//upto\sand\sincl.\s8.1b2,\stcl\sdidn't\sneed\n\s\s\s\sthis\n\s\s\s\s\s\sif\s(Tcl_Init(_interp)\s==\sTCL_ERROR)\s{\n\s\s\s\s\s\s\s\scerr\s<<\sTcl_GetStringFromObj(Tcl_GetObjResult(_interp),NULL)\s<<\n\s\s\s\sendl;\n\s\s\s\s\s\s\s\sreturn\s-1;\n\s\s\s\s\s\s}\n\s\s\s\s\s\sreturn\s0;\n\s\s\s\s}\n\nObservedBehavior:\nUpto\sand\sincl.\stcl8.1b2,\swe\sdidn't\sneed\sto\snecessarily\scall\n\s\s\s\sTcl_FindExecutable(argv[0])\sbefore\scalling\sTcl_FindExecutable(argv[0])\n\s\s\s\sIn\stcl8.1\sfinal\srelease,\sTcl_Init\sfails\ssaying\sit\scannot\sfind\sinit.tcl\n\s\s\s\sin\sthe\sdirectory\slist\s{empty}\seven\sthough\sTCL_LIBRARY\senvironment\n\s\s\s\svariable\sis\s\n\s\s\s\scorrectly\sset\sto\sthe\sdirectory\swhere\sinit.tcl\sresides.\n\s\s\s\s\n\s\s\s\sbasically,\sTcl_Init\sis\signoring\sthe\svalue\sof\sTCL_LIBRARY\sunless\n\s\s\s\sTcl_FindExecutable(argv[0])\shas\sbeen\scalled.\sThis\sis\sundesirable\sand\snot\n\s\s\s\sbackwards\sincompatible.\n\nDesiredBehavior:\nAs\sin\sprevious\sversions,\sif\sTCL_LIBRARY\sis\sset,\swe\sshouldn't\sneed\sto\n\s\s\s\scall\sTcl_FindExecutable(argv[0])\sbefore\scalling\sTcl_Init(_interp)\n\n\n\nThis\schange\swas\smade\sbecause\swithout\sit,\sproblems\swith\sencoding\ncould\soccur.\s\sWhile\snot\swell\sdoc'ed\sthis\sisn't\sa\sbug.\s\sWe\sare\nlooking\sinto\smaybe\simproving\sthis\sfor\s8.3.\s\n--\s09/15/1999\shobbs
J foundin obsolete:\s8.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Tcl_Init\sfails\sif\sTcl_FindExecutable\swasn't\scalled
J type Bug
K 218135ffffffffffffffffffffffffffffffffff
U nobody
Z 7010c4305146f9187b86d61ea798b265