Overview
| Artifact ID: | 0a1b32dcc7596d3f209a8d500029831f409541b8bd88d6b3a37465595addff34 |
|---|---|
| Ticket: | 63941fee4fc984f8675b6cabff50b18457b9255b
interp create resets the system encoding set by encoding system |
| User & Date: | serhiy.storchaka on 2026-10-16 22:05:58 |
Changes
- cmimetype changed to: "text/x-fossil-wiki"
- 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).
- foundin changed to: "9.0.5, 9.1.0"
- login: "serhiy.storchaka"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "serhiy.storchaka"
- subsystem changed to: "44. UTF-8 Strings"
- title changed to:
interp create resets the system encoding set by encoding system
- type changed to: "Bug"