<i>Tcl_SetListObj fails reset obj properly</i> status still Open with 5 other changes
by
.
D 2001-04-04T11:21:44
J assignee hobbs
J icomment Logged\sIn:\sYES\s\nuser_id=80530\n\nAccording\sto\sTcl_Obj(3)\s(doc.Object.3):\n\n\sThe\sbytes\sand\sthe\slength\smembers\stogether\shold\san\sobject's\n\sstring\srepresentation,\swhich\sis\sa\scounted\sor\sbinary\sstring\n\sthat\s\smay\s\scontain\s\sbinary\s\sdata\swith\sembedded\snull\sbytes.\n\sbytes\spoints\sto\sthe\sfirst\sbyte\sof\sthe\s\sstring\s\srepresenta-\n\stion.\s\s\sThe\s\slength\smember\sgives\sthe\snumber\sof\sbytes.\s\sThe\n\sbyte\sarray\smust\salways\shave\sa\snull\safter\sthe\slast\sbyte,\sat\n\soffset\s\slength;\n\nThere\sis\ssimilar\slanguage\sin\sObjectType.3.\s\sManipulators\sof\nTcl_Obj's\smust\spreserve\sthe\sinvariant:\n\n(objPtr->bytes\s==\sNULL)\s||\n(objPtr->bytes[objPtr->length]\s==\s'\\0')\n\nTcl_SetListObj()\sfails\sto\sdo\sthat.\s\sThe\scontributed\npatch\scorrects\sthe\sfailure.\n\nI'm\spunting\sback\sto\sthe\sList\sObject\smaintainers\sto\s\ndetermine\swhether\sthe\sbest\sfix\sis\sthe\scontributed\npatch,\sor\shaving\sTcl_SetListObj()\sreturn\sa\sTcl_Obj\nthat\sactually\shas\s(objPtr->typePtr\s==\s&tclListType).\n
J login dgp
J mimetype text/plain
J username dgp
K 405998ffffffffffffffffffffffffffffffffff
U dgp
Z de0f5beac3a6f94aa6811b944ba07c70