Skip to content
Tcl Source Code Artifact [8a7a92d0ff]
Login

Artifact [8a7a92d0ff]

Artifact 8a7a92d0ff176adbde91c7c982152591f8d8e91a:

Ticket change [8a7a92d0ff] - Ticket [9b2e63636199b969|9b2e636361] <i>Tcl_CreateInterp() needs initialized encoding search path</i> status still Closed with 5 other changes by dgp on 2013-07-05 16:53:26.
D 2013-07-05T16:53:26.474
J closedate 2456479.20377863
J icomment Yes\sthis\schange\sis\sa\sfix\sfor\s[983509]\s(why\sisn't\r\nthis\sa\slink?).\r\n\r\nPGV\sis\snot\shelpful\shere.\s\sThese\svalues\sare\sstored\r\nper-interp,\sso\sa\sprocess-global\sthing\sisn't\suseful.\r\n\r\nSo\sthis\spatch\sis\sa\sgood\sone.\r\n\r\nI\sdon't\sthink\sthe\sdescription\sis\sas\shelpful\sas\r\nit\sought\sto\sbe,\ssince\sthe\snotion\sof\s"initialized\r\nencodings"\scovers\smultiple\sstages.\r\n\r\nThe\sfirst\sstage\sis\sthe\scall\sto\sTclInitEncodingSubsystem(),\r\nwhich\sis\scalled\sby\sTclInitSubsystems()\swhich\sin\sturn\sis\r\ncalled\searly\sby\sTcl_CreateInterp(),\sso\sthat\slevel\sof\s\r\ninitialization\sis\salways\scomplete\sand\snot\san\sissue.\s\sThis\r\nmeans\sthe\score\smachinery\sis\sset\sup\sand\sthe\sset\sof\sbuilt-in\r\nencodings\s(identity,\sutf-8,\sunicode,\siso8859-1)\sis\sready\r\nto\sgo.\r\n\r\nThe\ssecond\sstage\sis\sthe\scall\sto\sTclpSetInitialEncodings()\r\nwhich\sthis\spatch\sdelays\suntil\safter\sTcl_CreateInterp()\sis\r\ncomplete.\s\sThe\sonly\sthing\sfunctionally\sthat\scall\sdoes\sis\s\r\nto\s(try\sto)\sset\sthe\svalue\sof\s[encoding\ssystem]\sto\smatch\r\nthe\svalue\sit\sdetects\sthe\senvironment\sexpects\sit\sto\shave.\r\nSince\sthe\sworkings\sof\sTcl_RegisterConfig()\sdon't\smake\suse\r\nof\sthe\ssystem\sencoding,\sthe\sdirect\seffect\sof\sthat\sroutine\r\ndoesn't\sreally\smatter\shere.\r\n\r\nThe\sthird\sstage\sis\sgetting\sthe\s[encoding\sdirs]\ssearch\spath\r\nset\sup\sto\slocate\swhere\sthe\s*.enc\sfiles\sare\sactually\sstored.\r\nThis\sisn't\sdone\sexplicitly\sby\sTcl\sinitialization.\s\sInstead\r\neither\sthe\sfirst\s[encoding\sdirs]\scommand\sin\sinit.tcl\sor\r\nthe\sfirst\sattempt\sto\suse\san\sencoding\sthat\sis\snot\sbuilt-in\r\nwill\scause\sthe\sdefault\ssearch\spath\sto\sbe\sestablished\sby\sthe\r\nroutine\sInitializeEncodingSearchPath().\s\sIn\ssome\sembedding\r\nscenarios\s--\snotably\skit\sthings\sthat\sstore\s*.enc\sin\sa\s\r\nscript-powered\sVFS\s--\sthis\sdefault\spath\swon't\sbe\sa\ssuccessful\r\none,\sand\sa\slater\s[encoding\sdirs\s$path]\swill\sneed\sto\sestablish\r\na\sfully\sworking\sencoding\ssystem.\r\n\r\nIt's\sthe\sthird\sstage\sthat's\sreally\sthe\sissue\shere,\sso\sI\srevised\r\nthe\sTitle\sto\smake\sthat\smore\sclear.
J login dgp
J mimetype text/plain
J title Tcl_CreateInterp()\sneeds\sinitialized\sencoding\ssearch\spath
K 9b2e63636199b969e480a2a5fdba09588b0f0170
U dgp
Z c706874e273430477563bb87604b6d5c