Overview
| Artifact ID: | d5f83b1254e321ebeb2031332fee1c4de08609f98b1b5caaba49ce61aba54557 |
|---|---|
| Ticket: | 87b69745be15c2816574ec415dfe2c3c407cc5d6
interp creation resets encoding directory search path |
| User & Date: | apnadkarni on 2025-08-27 07:46:36 |
Changes
- icomment:
@Don, it has been bothering me as to why this issue is exhibited only on your system. I think I have a plausible explanation. It was a combination of - the bug introduced by my commit (that Sergey fixed) related to zipfs initialization in static build case, and - what I would suggest is a misfeature (by design) in the initialization script's use of `pkgconfig scriptdir,runtime` The init script constructs a list of directories to search for the init.tcl file. One of these is the directory returned by `pkgconfig get scriptdir,runtime`. Because the zipfs failed to locate tcl_library early enough, and the `TCL_LIBRARY` env is not set (by design when running make test with zipfs), the test run lands up using the path returned by `pkgconfig` command. The problem is that the `scriptdir,runtime` value reflects the path **after installation** (presumably the value of `-prefix` or friends). When you ran test-tcl, it was picking up the path where the build would be installed and that path happened to contain the old encodings. That's my **theory** anyways. That pkgconfig value is pretty useless as on Windows it never reflects reality and is broken in various scenarios even on Unix, like the one above.
- login: "apnadkarni"
- mimetype: "text/plain"