Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 684c2e00e284353e2089480968a6cf74faf6ab7893d2c1a9619ac49e0f102135
Ticket: 87b69745be15c2816574ec415dfe2c3c407cc5d6
interp creation resets encoding directory search path
User & Date: sebres on 2025-08-25 22:07:35
Changes

  1. closedate changed to: "2460913.42193701"
  2. closer changed to: "sebres"
  3. icomment:
    Looks like a weird side effect to me.
    
    What would you see with this one (started from build folder):
    
        LD_LIBRARY_PATH=. TCL_LIBRARY="" ./tcltest <<<'puts [encoding dirs]'
    
    In particular do you see some other path before "//zipfs:/app/tcl_library/encoding" (for zipfs) or "${pwd}/../library/encoding" (for build without zipfs)?
    
    Something like:
    
        /usr/local/lib/tcl9.0/encoding ${pwd}/../library/encoding
    
    (or whatever the $installDir you mentioned)?
    
    Strange is, even if I create such directory (and put there some old encodings, e. g. from core-9-0-a1-rc), I cannot reproduce the errors in "encoding.test" anyway (no matter with or without zipfs, disabled shared or not). And I don't know what shall be so different there to force that tests fail.
    
    Moreover in build with zipfs, I see only one path in `encoding dirs` - "//zipfs:/app/tcl_library/encoding" (and since zipfs uses `Tcl_SetEncodingSearchPath` to set search path, it shall be basically sole path only).
    
    By the way, does this one returns 1?
    
        LD_LIBRARY_PATH=. ./tcltest <<<'puts [file exists "//zipfs:/app/tcl_library/encoding"]'
    
  4. login: "sebres"
  5. mimetype: "text/x-fossil-wiki"