Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c4744a30a5428e8d0c256b0d54ee5381334a103ed19d5666ec85e64155565a18
Ticket: 75ecc0e6cb9899bff0fa9e22a10a76b0c244c0a1
TclInitSubsystems issues: the sporadic lack of encodings
User & Date: apnadkarni on 2026-11-06 15:40:08
Changes

  1. icomment:
    Proposed fix in branch [apn-bug-75ecc0e6cb](https://core.tcl-lang.org/tcl/timeline?r=apn-bug-75ecc0e6cb).
    
    Implementation differs from the init-encoding-dirs branch. Encoding directory should be added irrespective of whether `InitAutoPath` is called by a (custom) init.tcl or not so it's called from `LocatePreInitScript` which sets `tcl_library`. Implementation is shared with the zipfs enabled case.
    
    Question, in case anyone feels one way or another -
    
    - new encoding dirs are added to the front, not the back (the new encoding-26.1 test has been modified accordingly). My thinking is directories added later by any mechanism should be searched to earlier ones. Easy enough to change.
    
    - After an application sets the encoding directories through `encoding dirs` new interpreters will modify the search path established through that command. I don't know if that is desirable or not but that is the 8.6 behaviour and preserved.
    
  2. login: "apnadkarni"
  3. mimetype: "text/x-markdown"