Overview
| Artifact ID: | f3d1ce6b6cad69970f583d3dd06f32698db7a3379a4701a36f3032a970b70d2f |
|---|---|
| Ticket: | 63941fee4fc984f8675b6cabff50b18457b9255b
interp create resets the system encoding set by encoding system |
| User & Date: | jan.nijtmans on 2026-10-17 06:46:04 |
Changes
- assignee changed to: "aku"
- closer changed to: "nobody"
- comment changed to:
Since [17c53b7edd] (the fix for [fccb9f322f]) Tcl_Init() calls TclpSetInitialEncodings() for every interpreter, so creating an interpreter (also with Thread or Tk) resets the system encoding to the one from the environment: <verbatim> encoding system koi8-r interp create a encoding system ;# utf-8 (8.6: koi8-r) </verbatim> The repeated detection is also what calls setlocale() in parallel threads in [c35e347c6f]. It is only needed while the earlier detection failed (the encoding files were not found yet).
- icomment:
I agree with this. Please go ahead merging this!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"