.
D 2002-10-12T21:07:47
J assignee vincentdarley
J cmimetype text/plain
J comment TclKit\sstill\shas\sa\scrash\son\sexit\sreported\sby\sseveral\npeople\son\sWin\s9x.\n\nI'm\snow\sable\sto\sconsistently\sreproduce\sit,\swith\slatest\nCVS\shead\sof\severything,\sand\srunning\sa\sstarkit\swith\sthe\ntkhtml\sextension\sin\sit\s-\nhttp://www.equi4.com/pub/sk/tcl84dok.kit\n\nNot\ssure\sany\sof\sthis\sis\scrucial,\sbut\sthe\sabove\scombo\nconsistently\scrashes\son\swin98se\sand\sdoes\snot\scrash\son\nnt4\s(both\sunder\svmware).\n\nI\shaven't\sgot\sa\sdebug\sbuild\sof\sthe\slatest\stclkit\swith\nMSVC6,\sbut\sI\sdid\smanage\sto\sget\sa\slink\smap\sand\sa\ndrwatson\slog,\swhich\s-\swith\sa\sbit\sof\shunting\s-\sindicates\nthis\sproblem\shappens\swith\scode\sin\stclEncoding.c,\si.e.\nencoding\scleanup\sorder\sor\ssomething.\n\nTclKit\splays\sone\strick\swith\sencodings:\sit\shas\sits\sown\sC\ncommand\swhich\scalls\sTclSetLibraryPath,\sthen\nTclpSetInitialEncodings,\sthen\sTcl_FindExecutable\s(all\nis\sin\stclkit\ssrc/pwb.c,\sa\strivial\swrapper).\n\nThis\sis\sneeded\sto\sresolve\sthe\sstartup\scatch-22:\screate\ntcl\sinterp,\sthen\srun\ssome\ssetup\sscripts,\sthen\stclkit's\nend-of-exe\sdata\sis\savailable\sas\smounted\sVFS,\sand\s*then*\nwe\sneed\sto\sreset\sthe\sencoding\slogic\sso\sit\swill\sfind\nencodings\sinside\sVFS.\s\sTwisted,\sbut\sit\sseems\sto\swork\nbecause\sthere\sis\slogic\sin\sthe\sstartup\sof\sencodings\sto\nallow\siniting\stwice.\n\nNow\sthe\spunch\sline:\sif\sI\sremove\sthe\scall\sto\nTclpSetInitialEncodings\sfrom\ssrc/pwb.c,\si.e.\stclkit's\n"librarypath"\scommand,\sthen\sit\sno\slonger\scrashes\son\nexit.\s\sPut\sit\sback\sin:\sboom.\n\nUnfortunately,\sleaving\sthat\scall\sout\salso\smeans\sthe\nsystem\sencoding\sdoes\snot\sget\sset\sto\scp1252\son\s98\s(on\nnt4\sit\sis\sstill\sfine)\s-\sI\scan\seasily\sfix\sit,\sthough\sits\nunfortunate\sthat\sthe\sautomatic\schoice\sfor\swin\s(and\nmaybe\smac?)\sgets\slost.\n\nBottom\sline:\sI\swill\sremove\sthe\scall\sto\nTclpSetInitialEncodings,\sand\sadd\sfake\slogic\sto\spick\ncp1252\son\swindows\s(probably\sincorrect\sfor\sinternational\nwindow\sconfigs).\s\sThat\sway\sI\shope\sto\sresolve\sthe\ncrash-on-exit\sonce\sand\sfor\sall.\n\nBut\sthere's\sdeep\smisery\sbehind\sall\sthis,\sand\sprobably\nalso\ssome\shideously\sbad\slogic\sin\sthere...\smaybe\sthe\nabove\shelps\sresolve\sthe\strue\sissues\sunderneath.
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter jcw
J subsystem 37.\sFile\sSystem
J title crash\son\sexit\sWin9x\s-\sprogress
J type Bug
K 622441ffffffffffffffffffffffffffffffffff
U jcw
Z e81dcfcbac5c2b778395f9230849b2dd