Skip to content
Tcl Source Code Artifact [3ef925ec77]
Login

Artifact [3ef925ec77]

Artifact 3ef925ec7754fa87992501d1dab662b11ee149bf:

Ticket change [3ef925ec77] - New ticket [579617ffffffffff|579617ffff] <i>encodings can&#39;t be found</i>. by jcw on 2002-07-10 13:09:22.
D 2002-07-10T13:09:22
J assignee dgp
J cmimetype text/plain
J comment Context:\stclkit,\swhich\suses\sthe\sstd\sunix/tclAppInit.c,\s\nbut\soverrides\sTcl_AppInit\s(using\sTCL_LOCAL_APPINIT).\n\nBasic\slogic,\sfrom\smy\s(fragmentary)\sunderstanding:\n\s\s\sstd\smain\sstarts\n\s\s\sdoes\sa\sTcl_FindExecutable\n\s\s\slaunches\scustom\stclkit_AppInit\n\s\s\sloads\sa\sfew\sstatic\sextensions\n\s\s\ssets\sup\sa\spreinit\sscript\s[1]\n\s\s\scall\sTcl_Init\n\nThe\stclkit\sinit\scode\sis\srelatively\ssmall,\sit's\sat:\n\s\s\shttp://www.equi4.com/metakit/viewcvs.cgi/*checkout*/\ntclkit/src/kitInit.c?rev=1.9\n\n[1]\sThe\spreinit\sscript\sis\sthe\sone\sthat\sloads\sTclVFS\s\nwhich\sprovides\sscripting\saccess\sto\sthe\sVFS\sC\slayer\sin\s\nthe\sTcl\score.\n\n----\nObserved\sbehavior:\son\sUnix/Linux,\s"encoding\ssystem"\s\nreturns\s"identity".\s\sUNLESS\sthe\sexecutable\sis\srun\son\sthe\s\nbuild\smachine\s-\sTHEN\sit\sfind\sthe\sinstalled\sencodings\sdue\s\nto\sthe\sfact\sthat\sit\sremembers\s(!)\sa\sstatic\sabsolute\spath\s\nof\swhere\sthe\stcl8.4/\sarea\sis\sinstalled.\n----\n\nThe\sspecial\ssituation\sin\sTclkit\sis\sthat\sit\sstores\s\nencoding\sfiles\sinside\sa\sVFS,\sand\sthat\sit\suses\sa\sbit\sof\s\nTcl\sscripting\sto\sset\sthings\sup\s*before*\sencoding\sfiles\s\ncan\sbe\saccessed.\n\nTherefore\sthe\sfirst\scall\sto\sTcl_FindExecutable\swill\snot\s\nbe\sable\sto\sget\sencodings\sright\s-\snor\seven\sa\scall\sto\s\nTcl_SetDefaultEncodingDir\s-\sbecause\sat\sleast\sone\sinterp\s\nhas\sto\srun\sscripts\sbefore\sVFS\sis\sready.\n\nFor\sthat\sreason,\sTclkit\sincludes\sa\s"librarypath"\scommand\s\ncoded\sin\sC,\swritten\sby\sVince\sDarley,\swhich\sgets\scalled\s\nfrom\sTcl\sas\ssoon\sas\sthe\sVFS\smount\sis\sin\splace.\s\sThe\scode\s\nfor\sthis\sis\sa\sfew\sdozen\slines,\ssee:\n\s\s\shttp://www.equi4.com/metakit/viewcvs.cgi/*checkout*/\ntclkit/src/pwb.c?rev=1.6\n\nThe\sessential\scalls\sthere\sare:\n\s\s\s\s\s\s\s\sTclSetLibraryPath(Tcl_NewListObj(1,&path));\n\s\s\s\s\s\s\s\sTclpSetInitialEncodings();\n\s\s\s\s\s\s\s\sTcl_FindExecutable(Tcl_GetVar(interp,\s"argv0",\s\nTCL_GLOBAL_ONLY));\n\nWhat\shappens,\sis\sthat\sTcl_FindeExecutable\sgets\scalled\sa\s\nsecond\stime\s-\snot\ssure\swhy\sthis\sis\sneeded.\n\nAny\shelp\son\sthis\sissue\swould\sbe\sgreatly\sappreciated\s-\s\nI'm\ssort\sof\sway\sbeyond\smy\sunderstanding\sof\show\sthings\s\nwork\sor\scould\sbe\smade\sto\swork...\n\nPerhaps\sunrelated,\sbut\sworth\snoting,\sis\sthat\stclkit\salso\s\nhas\strouble\swhen\srun\sthrough\sa\ssymlink\s(this\sis\s\ndefinitely\sof\ssecondary\simortance\sto\sme\sfor\snow).\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter jcw
J subsystem 38.\sInit\s-\sLibrary\s-\sAutoload
J title encodings\scan't\sbe\sfound
J type Bug
K 579617ffffffffffffffffffffffffffffffffff
U jcw
Z a0d66844d0822ec1597fc5f59981aa59