Skip to content
Tcl Source Code Artifact [8e7feb7ea0]
Login

Artifact [8e7feb7ea0]

Artifact 8e7feb7ea0bffe7378118704b8749f094c93f985:

Ticket change [8e7feb7ea0] - New ticket [703709ffffffffff|703709ffff] <i>&#39;TCL_CAN_MATCH&#39; flag returns incorrect matches</i>. by vincentdarley on 2003-03-14 16:23:11.
D 2003-03-14T16:23:11
J assignee nobody
J cmimetype text/plain
J comment The\sattached\spatch\sto\stclTest.c\sand\sreg.test\sshows\s\nhow\sTcl_RegExpExecObj\sreturns\sincorrect\smatches\s\nfor\smany,\smany\scases\susing\sthe\s'TCL_CAN_MATCH'\s\nflag.\n\nThis\sflag\sis\ssupposed\sto\smake\sregexp\sreturn\s(if\sit\s\ncan't\sfind\sa\scomplete\smatch)\sthe\sfirst\spossible\s\nposition\sat\swhich\sa\smatch\scould\soccur.\s\sHowever,\sit\s\nreturns\spositions\sat\swhich\sit\sis\squite\sobvious\sno\s\nmatch\scould\sever\soccur!\n\nFor\sexample:\n\n\s\s\s\sset\spat\s{.x}\n\s\s\s\sset\sline\s"asd\sasd"\n\s\s\s\s#\scan\smatch\sthe\slast\schar,\sif\sfollowed\sby\sx\n\s\s\s\sset\sres\s[testregexp\s-xflags\s--\sc\s$pat\s$line\sresvar]\n\s\s\s\slappend\sres\s$resvar\n\nShould\sreturn\s'0\s6'\sto\ssay\sthere\sis\sno\smatch\s(0)\sbut\s\na\smatch\scould\spossible\soccur\sat\sposition\s6\s(with\s'.'\s\nmatching\sthe\sfinal\s'd',\sif\san\s'x'\swas\sto\sbe\sappended\s\nto\sthe\sstring).\n\nUnfortunately\sit\sreturns\s'0\s0'\swhich\sis\squite\swrong.\n
J foundin obsolete:\s8.4.2
J priority 6
J resolution None
J status Open
J submitter vincentdarley
J subsystem 43.\sRegexp
J title 'TCL_CAN_MATCH'\sflag\sreturns\sincorrect\smatches
J type Bug
K 703709ffffffffffffffffffffffffffffffffff
U vincentdarley
Z afb11f5911b33b1d971c90b6baf64f70