.
D 2000-10-26T00:53:56
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s2205\sBug\nVersion:\s8.0.5\nSubmitDate:\s'1999-06-11'\nLastModified:\s'1999-11-07'\nSeverity:\sSER\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sOther\nOSVersion:\sUnixWare\s(Intel)\nMachine:\sNA\nFixedDate:\s'2000-10-25'\nClosedDate:\s'1999-11-07'\n\n\nName:\nDavid\sBradsher\n\nCustomShell:\nnone\n\nReproducibleScript:\n#\sscript\sbreaks\shere\n\s\s\s\s\s\sreturn\s1\n\s\s\s\s--------------------\n\s\s\s\sC\spgm:\n\s\s\s\s\n\s\s\s\s\s\schar\s\s\sinterp_res[256];\n\s\s\s\s\s\s\s\s.\n\s\s\s\s\s\s\s\s.\n\s\s\s\s\s\sif\s(\sTcl_EvalFile(\smp_tcl_interp,\sp_filename\s)\s!=\sTCL_OK\s)\s{\n\s\s\s\s\s\s\s\s.\n\s\s\s\s\s\s\s\s.\n\s\s\s\s\s\s}\s\s\n\s\s\s\s\s\sstrcpy(\sinterp_val,\smp_tcl_interp->result\s);\n\s\s\s\s\s\sreturn(\satoi(\sinterp_val\s)\s);\n\nObservedBehavior:\nThe\sC\sapplication\shad\sbeen\sworking\swhile\slinked\sto\sversion\s7.4\sof\sthe\n\s\s\s\sTcl\slibraries.\s\sFor\sthe\sabove\sinstance,\sthe\sC\sroutine\swould\sreturn\san\n\s\s\s\sinteger\s'1'\swhen\sthe\sscript\sterminated\snormally\swith\s"return\s1".\s\sWith\n\s\s\s\s8.0.5,\sthe\sresult\sstring\shas\slength\s0,\swhich\satoi()\stranslates\sto\s'0'.\n\nDesiredBehavior:\nThe\sreturn\sfrom\sTcl_EvalFile()\sshould\sbe\sthe\ssame\sas\swith\sversion\s7.4.\n\n\n\nThe\sdesired\sbehavior\sfor\sthis\sis\smisguided\sdue\sto\sthe\sfact\sthat\n8.0\suses\sTcl_Obj's\sthroughout.\s\sIt\sis\slikely\sin\sthis\scase\sthat\nthe\sresult\sfrom\sTcl_EvalFile,\sif\s1,\swill\sbe\sstored\sin\sthe\sresult\nas\san\sTcl\sinteger\sobject,\sand\sthus\s'result'\schar*\swill\sbe\sempty\nuntil\sit\sis\srequested\sas\sa\sstring.\s\sThis\sis\snoted\sin\sthe\sporting\ndocs.\s\sThe\suser\sshould\suse\sTcl_GetStringResult,\swhich\sworks\sin\nTcl7\sand\sTcl8.\s\n--\s11/07/1999\shobbs
J foundin final:\s8.0.5
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Tcl_EvalFile()\sreturns\sempty\sresult\sstring
J type Bug
K 218161ffffffffffffffffffffffffffffffffff
U nobody
Z 9d695cc9e2a0e45587ee2b231a395dd6