Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "aku"
  2. closer changed to: "nobody"
  3. 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).
    
  4. icomment:
    I agree with this.
    
    Please go ahead merging this!
    
  5. login: "jan.nijtmans"
  6. mimetype: "text/x-fossil-wiki"