Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. cmimetype changed to: "text/x-fossil-wiki"
  2. 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).
    
  3. foundin changed to: "9.0.5, 9.1.0"
  4. login: "serhiy.storchaka"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. severity changed to: "Minor"
  8. status changed to: "Open"
  9. submitter changed to: "serhiy.storchaka"
  10. subsystem changed to: "44. UTF-8 Strings"
  11. title changed to:
    interp create resets the system encoding set by encoding system
    
  12. type changed to: "Bug"