Skip to content
Tcl Source Code Artifact [1aa7e19a58]
Login

Artifact [1aa7e19a58]

Artifact 1aa7e19a58e61a9f7afa47661e788e9b35cc390d9ee8cad32b59820b7ccd5298:

Ticket change [1aa7e19a58] - Ticket [87b69745be15c281|87b69745be] <i>interp creation resets encoding directory search path</i> status still Open with 3 other changes by sebres on 2025-08-13 16:11:19.
D 2025-08-13T16:11:19.887
J icomment After\sa\squick\sreview,\sI\sdon't\sentirely\sagree\swith\sthe\schanges\sin\s<code>Tcl_SetSystemEncoding</code>,\sbecause\sit\smay\shave\san\sissue\sby\smoving\sof\s<code>Tcl_MutexLock(&encodingMutex)</code>\sto\shead\sof\sfunction,\swhich\snow\swould\scause\sthat\sdue\sto\s<code>Tcl_GetEncoding()</code>\s(which\salso\slocks\smutex)\swould\sdo\sthat\stwice\s(enters\sthe\slock\srecursively).<br/>\r\nNote\sthat\sthe\smutexes\sare\snot\snecessarily\sreentrant\son\sall\ssystems,\sso\sa\srecursive\slocking\smay\sbe\san\sUB\s(and\smay\scause\sa\sdeadlock).\sAlso\sTcls\sdocumentation\ssays\sthat\s"the\sresult\sof\slocking\sa\smutex\stwice\sfrom\sthe\ssame\sthread\sis\sundefined".\r\n\r\nAdditionally\snote\sthat\sthis\smutex\sonly\sprotect\sthe\shash\stable\sof\sencodings\sand\sencoding'\srefCount,\sit\sdoesn't\sreally\sprotect\sstatic\ssystemEncoding\s(nor\sthe\sdefaultEncoding)\sdirectly.\sLet\salone\sit'd\sbe\sstill\saffected\sby\s[f2ff05fc84]\sand\sco.\r\n\r\nCommit\s[bf62ce24c60c7b8a]\sshall\sfix\sit\snow.
J login sebres
J mimetype text/x-fossil-wiki
K 87b69745be15c2816574ec415dfe2c3c407cc5d6
U sebres
Z dca1de04c4e151d062022b6680420fc3