Skip to content
Tcl Source Code Artifact [14e4821d1b]
Login

Artifact [14e4821d1b]

Artifact 14e4821d1b8826be152a6287370d2c4625597487:

Ticket change [14e4821d1b] - New ticket [218482ffffffffff|218482ffff] <i>parser modifies strings in place and interferes with literal</i>. by nobody on 2000-10-26 01:01:06.
D 2000-10-26T01:01:06
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s686\sBug\nVersion:\s8.1a2\nSubmitDate:\s'1998-10-02'\nLastModified:\s'1998-10-02'\nSeverity:\sCRIT\nStatus:\sReleased\nSubmitter:\sstanton\nChangedBy:\sstanton\nOS:\sAll\nOSVersion:\sNA\nMachine:\sNA\nFixedDate:\s'2000-10-25'\nFixedInVersion:\s8.1b1\nClosedDate:\s'1998-10-02'\n\n\nThis\sbug\sis\sreproducible\sby\srunning\sthe\snew\sauto_mkindex\smechanism\sin\sthe\sTcl\slibrary\sdirectory.\n\n\n\nThe\sproblem\sis\sthat\sthe\sparser\smodifies\sthe\sstring\sit\sis\sparsing\sand\sthen\srestores\sthe\sstring\swhen\sit\sis\sdone.\s\sThe\sparser\salso\sadds\sstrings\sto\sthe\sliteral\stable\swhile\sparsing.\s\sIf\sit\scauses\sthe\sliteral\stable\sto\sexpand\swhile\sbefore\sit\srestores\sthe\sstring,\sthe\shash\svalue\swill\sbe\sincorrect\sand\sthe\sstring\swill\sbe\smisplaced.\s\sThis\sis\sa\sspecific\sinstance\sof\sa\smore\sgeneral\sproblem\swith\scode\sthat\smodifies\sstrings\sin\splace.\s\sIn\sgeneral\sstrings\smay\sbe\scached\sin\sarbitrary\sways.\s\sIf\sa\sroutine\smodifies\sa\sstring\sin\splace,\sit\smust\sbe\scareful\sto\sonly\scall\sfunctions\sthat\scannot\saffect\sany\sother\sparts\sof\sthe\ssystem\sbefore\sit\srestores\sany\sstrings\sthat\sit\shas\smodified.\n\nIn\sthis\sparticular\scase,\sthe\ssolution\sis\sto\smove\sthe\scode\sthat\srestores\sthe\sstring\sso\sthat\sit\sappears\sbefore\sany\scalls\sthat\saffect\sthe\sliteral\stable.\n\n
J foundin obsolete:\s8.1a2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 10.\sObjects
J title parser\smodifies\sstrings\sin\splace\sand\sinterferes\swith\sliteral
J type Bug
K 218482ffffffffffffffffffffffffffffffffff
U nobody
Z ba6a3d44b857cb0d819fcd96b5dcc5f7