Skip to content
Tcl Source Code Artifact [29663de4c5]
Login

Artifact [29663de4c5]

Artifact 29663de4c58b0f2c08cf3a7ae814e8b99c03a373cf9c046f480070894be5a005:

Ticket change [29663de4c5] - Ticket [6fbabfe1661c22e7|6fbabfe166] <i>Tkinter: Cannot find a usable init.tcl with recent core-9-0-branch</i> status still Open with 3 other changes by apnadkarni on 2025-10-01 11:18:46.
D 2025-10-01T11:18:46.511
J icomment Thanks\sfor\sthe\slink\sto\stkinter,\sI\swas\slooking\sat\sexactly\sthe\swrong\sone\s:-)\r\n\r\nIt\sappears\syour\stcl\sis\sbuilt\swith\szipfs\senabled\s(so\sinit.tcl\sand\sfriends\sare\splaced\swithin\sthe\szip\r\narchive\sand\snot\sin\sa\snative\sdisk\sdirectory).\sBut\sbecause\stkinter\snever\scalls\sTclZipfs_AppInit\sas\spart\s\r\nof\sits\sinitialization,\sthe\sinit.tcl\swithin\sthe\szipfs\sarchive\sis\snever\slooked\sat.\r\n\r\nPossible\ssolutions\sare:\r\n\r\n-\sAdd\sthe\sTclZipfs_AppHook\sto\sthe\stkinter\scode\sthat\sinitializes\sthe\sTcl\slibrary.\sSee\smain()\sin\r\ntkAppInit.c\sin\sthe\sTk\ssources\sfor\san\sexample.\r\n\r\n-\sOr,\sas\sJan\ssuggests,\sbuild\sTcl\s(and\sTk)\swith\sthe\s--disable-zipfs\soption\sto\sconfigure\sso\sthe\stcl\r\nlibrary\sis\splaced\son\sdisk\sas\sin\s8.6\r\n\r\nA\sthird\spossibility\sis\sbelow\sbut\sfirst\sI\sneed\sto\sclear\sup\sa\spoint\sof\sconfusion\sI\shave\sabout\sMacOS.\r\n\r\nI\sonly\srecently\slearnt\sthat\sMacOS\sbuilds\sdo\snot\ssupport\szipfs\sarchives\sand\syet\sI\ssee\sthat's\show\r\nyour\sTcl\sis\sbuilt.\sSo\sdo\sMacOS\sbinaries\ssupport\szip\sarchives\sattached\sto\sthe\sexecutable\sor\sshared\r\n\slibrary\sor\snot?\sDoes\sit\sdepend\son\sthe\sOS\sversion,\sarchitecture,\scompiler\stoolchain\sor\r\nsomething\selse?\s\r\n\r\nNow,\sas\sto\swhy\sit\swas\sworking\sbefore\s(i.e.\sas\sof\scommit\s[201dd6fe]),\sit's\sbecause\szipfs\r\nwas\ssearched\son\severy\sinterpreter\screation.\sI\schanged\sthat\sin\sresponse\sto\smultiple\stickets,\r\nrelated\sto\sboth\sperformance\sand\sdefects,\sto\sonly\sinitialize\sat\sprogram\sstart\swith\sthe\r\npremise\sthat\sif\szipfs\sarchives\sare\sto\sbe\sused\sTclZipfs_AppInit\smust\sbe\scalled.\r\n\r\nSo\sthe\sthird\spossibility\sis\sto\s*partially*\srevert\sthat\srequirement.\sI\sam\sloathe\sto\sdo\sthat\r\nbecause\sit\sleads\sto\sunpredictable\sand\sad-hoc\ssequences\sof\sinitialization\ssteps\s(locating\slibraries,\r\nencoding\setc.)\sdepending\son\sthe\sorder\sin\swhich\sTcl\sC\sAPI\sis\scalled.\sJust\sas\sTcl_Init\smust\sbe\r\ncalled\s(not\sjust\sTcl_CreateInterp)\sto\suse\sencodings,\sauto-loading\setc.,\sit\sseems\sreasonable\sthat\r\nTclZipfs_AppHook\smust\sbe\scalled\sto\suse\sbound\szipfs\sarchives.\r\n\r\nSomething\sto\sdiscuss\sat\sthe\snext\sonline\smeet\sperhaps.
J login apnadkarni
J mimetype text/x-markdown
K 6fbabfe1661c22e7990bb917e9fa49cc16e016ea
U apnadkarni
Z fb742293c59c0da6e7a6ae67f860df69