.
D 2003-06-11T18:54:42
J assignee nobody
J cmimetype text/plain
J comment Hi,\n\nI\sfound\sthat\sregexp\schanges\sthe\sobject\stype\sto\sstring\s\ntype.\s\sI\ssee\sthis\sbehavior\sin\sTcl8.3.5\sbut\snot\sin\sTcl8.1.\n\nThe\sstack\strace\swhen\sit\scalls\sthe\sregistered\sfunction\sto\s\nfree\sthe\sold\sinternal\srepresentation\slooks\sas\sfollows:\n\n#1\s\s0x9d2a4\sin\sSetStringFromAny\s(interp=0x0,\s\nobjPtr=0x11ebf8)\sat\s./../generic/tclStringObj.c:1505\n#2\s\s0x9bc3c\sin\sTcl_GetCharLength\s(objPtr=0x11ebf8)\s\nat\s./../generic/tclStringObj.c:329\n#3\s\s0x2fab4\sin\sTcl_RegexpObjCmd\s(dummy=0x0,\s\ninterp=0xfdd68,\sobjc=2,\sobjv=0xffdac)\s\nat\s./../generic/tclCmdMZ.c:227\n\nThe\squestion\sis\swhy\sTcl_GetCharLength\srequires\s\nchanging\sthe\sinternal\srepresentation\sto\sstring\sobject.\s\sIt\s\nshould\ssimply\scall\sTcl_GetStringFromObj\sand\sdoes\sa\s\nstrlen\son\sthe\sreturn\sC-string.\n\nLooking\sat\sthe\scode\stclCmdMZ.c,\sit\shas\sthe\sfollowing\s\ncomment...\n\n\s\sGet\sthe\slength\sof\sthe\sstring\sthat\swe\sare\smatching\n\s\sbefore\sgetting\sthe\sregexp\sto\savoid\sshimmering\sproblems.\n\n--\sYohan
J foundin final:\s8.3.5
J priority 5\sMedium
J resolution None
J status Open
J submitter ysutjandra
J subsystem 43.\sRegexp
J title Regexp\schange\sTcl_Obj\stype\sto\sstring
J type RFE
K 752814ffffffffffffffffffffffffffffffffff
U ysutjandra
Z 0343e76306020d29da3be6e6e72ffd80