Skip to content
Tcl Source Code Artifact [3f2c8da63a]
Login

Artifact [3f2c8da63a]

Artifact 3f2c8da63a776503bd94c2ed4b9bfb11db9a67b942152c9c78aeb90a6a6d1d79:

Ticket change [3f2c8da63a] - Ticket [87b69745be15c281|87b69745be] <i>interp creation resets encoding directory search path</i> status still Open with 3 other changes by sebres on 2025-08-14 11:47:28.
D 2025-08-14T11:47:28.522
J icomment No\sproblem.\r\n\r\n>\sto\sconvince\soneself\sthere\sare\sno\srace\sconditions\sor\sother\seffects\r\n\r\nBut\sthere\sis\sa\srace\scondition\sissue.\sThe\spossibility\sto\soverwrite\sa\ssystem\sencoding\sfrom\severy\sthread\s(also\sprotected\sby\smutex)\swill\scause\sthat\spreviously\sset\ssystem-encoding,\swhich\scan\sbe\sstill\sused\sby\sother\sthreads\swith\sother\sfunctions\s(see\sticket\s[f2ff05fc84])\smay\sget\sreleased\s(by\slast\sreference).\sAnd\syour\sextra\smutex\sdoesn't\sprotect\sagainst\sit\sat\sall.\sSure,\sit\smakes\sthat\snot\smore\sworse\sas\sit\swas,\sbut\sthe\slock\sprotection\sis\sdefinitely\soverestimated...<br/>\r\nAs\salready\ssaid,\sit\sis\smore\sor\sless\sconceptual\sbug\sin\s<code>Tcl_UtfToExternal*</code>,\s<code>Tcl_ExternalToUtf*</code>\sand\sco.
J login sebres
J mimetype text/x-fossil-wiki
K 87b69745be15c2816574ec415dfe2c3c407cc5d6
U sebres
Z c6d3f859d1fe10815fd162daf2970904