Overview
| Artifact ID: | 3f2c8da63a776503bd94c2ed4b9bfb11db9a67b942152c9c78aeb90a6a6d1d79 |
|---|---|
| Ticket: | 87b69745be15c2816574ec415dfe2c3c407cc5d6
interp creation resets encoding directory search path |
| User & Date: | sebres on 2025-08-14 11:47:28 |
Changes
- icomment:
No problem. > to convince oneself there are no race conditions or other effects But there is a race condition issue. The possibility to overwrite a system encoding from every thread (also protected by mutex) will cause that previously set system-encoding, which can be still used by other threads with other functions (see ticket [f2ff05fc84]) may get released (by last reference). And your extra mutex doesn't protect against it at all. Sure, it makes that not more worse as it was, but the lock protection is definitely overestimated...<br/> As already said, it is more or less conceptual bug in <code>Tcl_UtfToExternal*</code>, <code>Tcl_ExternalToUtf*</code> and co.
- login: "sebres"
- mimetype: "text/x-fossil-wiki"