D 2002-10-15T09:02:40
J assignee dkf
J cmimetype text/plain
J comment The\sfollowing\scode-snippet\sshows\sthe\smisbehaviour:\nSome\sempty\sp\sand\san\s"answer"-block\sshould\sbe\sadded\s\nto\sthis\sxml:\n\nset\sdata\s\n{q1
a1
}\n\n#\ssimply\swith\smap\sin\s"question"\sand\s"answer"\sempty\s"p"\s\nare\sadded\n#\sand\sa\snew\s"answer"-block\sshould\sbe\sinserted\nset\sresult\s[string\smap\s{\n
\s\s\n\s\n\s\n\n}\s$data]\n\n#\sresult\sis:\n#\s\nq1
a1<\n/p>
\n#\sthe\sempty\s"p"\stags\sare\sinserted,\sbut\sthe\slast\smap-\npattern\sis\snot.\n\n#\sWhen\sdoing\sthe\ssame\sin\stwo\ssteps\sas\shere:\nset\sresult\s[string\smap\s{\n\s\s\n\s\n}\s$data]\nset\sresult\s[string\smap\s{\n\s\n\n}\s$result]\n#\snow\severything\sis\sfine,\sresult\sis:\nq1
a1<\n/p>
\n\nThis\sis\sobserved\salso\sin\sTcl\s8.2.\sAs\sI\ssee\sin\stclCmdMZ.c\s\nin\sfunction\sTcl_StringObjCmd\sthe\spointers\sof\sthe\s\nmatches\sare\sprecomputed,\smay\sthat\sbe\sthe\sproblem?\sI\s\ndon't\sreally\sunderstand\sthe\srest\sof\sthe\scode\senough\sto\s\nprovide\sa\spatch.
J foundin obsolete:\s8.4.0
J priority 5\sMedium
J resolution None
J status Open
J submitter svogel
J subsystem 18.\sCommands\sM-Z
J title string\smap\snot\scorrectly\smapping
J type Bug
K 623448ffffffffffffffffffffffffffffffffff
U svogel
Z 56c427c6d6e7c42dd24ab859896826ad