.
D 2004-03-21T22:04:03
J assignee vincentdarley
J cmimetype text/plain
J comment It\sturns\sout\sthat\sthe\stricks\sfor\sall\sthe\sspecial\s"dirty\nutf"\shandling\sat\sstartup\sbetween\spre-init\sof\sencodings\nand\spost-init\sthat\smangles\sthe\sexecutable\sname\sand\nlibrary\spath\sisn't\scorrect\s(at\sleast\son\sWin\sNT-based\nplatforms).\s\sThe\sfollowing\spatch\saddresses\sthat\sissue.\n\sIt\sdoesn't\schange\sbehavior\son\sunix\s(should\sit?\smaybe),\nbut\sit\sdoes\sfor\sWindows.\s\sWin9x\sneeds\stesting\sto\ssee\sif\nthis\ssolution\sis\scorrect.\n\nSome\srandom\sextra\sbits\sfrom\semails\sto\sothers:\n----\nTcl\sstarts\sup\sassuming\severything\sin\sascii,\sand\nswitches\sto\sunicode\swhen\sTclWinSetInterfaces\sis\scalled.\n\sThat\sis:\n\ntclMain.c:Tcl_Main\ntclEncoding.c:Tcl_FindExecutable\ntclEncoding.c:TclFindEncodings\n\s\s(TclpFindExecutable\sand\sTclpInitLibraryPath\sare\ncalled\sfirst)\ntclEncoding.c:TclpSetInitialEncodings\ntclEncoding.c:TclWinSetInterfaces\n\nThe\sproblem\sis\sthat\sby\sthis\stime,\sthrough\sthe\sother\ncalls,\swe\shave\sestablished\sthe\snameofexecutable\susing\nascii\sfunctions,\sas\swell\sas\sinit'ed\sour\slibrary\spath\nwith\sthem.\s\sThat\smakes\slater\scalls\sto\sload\sstuff\snot\ncorrect.\n----\n\nEarlier\sanalysis\sby\sAndreas:\n\nUrks.\sI\shave\sto\sstart\sfrom\sthe\sbeginning.\sBecause\swe\nhave\stwo\sdifferent\spaths\sto\slook\sat,\sand\swhat\sI\sfound\nout\sso\sfar\sapplies\sto\sonly\sone.\n\n(A)file\smkdir\sa\\u6211b\\u00aacJap.\spath.\n(B)file\smkdir\sab\\u00aacHigh-bit\spath.\n\nAll\sthe\sresults\sI\stalked\sabout\spreviously\swere\sfor\spath\n(B).\n\nSo,\slets\stry\sagain.\n\nCreated\spath\sfor\s(A)\sand\s(B).\sCopied\sthe\sall\sbasekits\ninto\sboth\spaths.\sAlso\scopied\sthe\sbin/lib\spart\sof\sa\sTDK\ninstallation\s[*]\sinto\sboth.\sAlso\screated\sa\sregular\spath\n'abc'\s-->\s(C),\sand\scopied\severything\sinto\sit.\n\n[*]\sIOW\stclsh/wish\swith\sall\srelevant\slibraries\sand\stcl\nlibraries.\sThat\sbecomes\simportant\slater.\n\nThis\sis\sfor\sWin\s2000.\n\n\nResults:\n~~~~~~~~\nExecutable(A)(B)(C)\n-------------------------\n(1)bin/tclshFAIL/1OKOK\n(2)bin/wishFAIL/1OKOK\n-------------------------\n(3)base-tclFAIL/2OKOK\n(4)base-tkFAIL/2FAIL/3OK\n-------------------------\n\nError\stext\s\sFunction,\sif\sknown\n-------------------------------------------------\n-------------------\nF/1:\s"App.\sinit\sfailed:\sCan't\sfind\susable\s'init.tcl'."\s(x)\nF/2:\s"App.\sinit\sfailed:\sfile\sopen\sfailed"(Tcl_Init)\nF/3:\s""(Tcl_CreateConsoleWindow)\n\nThe\sinteresting\sthing\sis\sthat\sthe\s_regular_\stclsh\sfails\nfor\sthe\sjapanese\spath\sas\swell.\sTo\sme\sthis\smeans\sthat\nthe\sregular\sinitialization\sis\shosed\sas\swell.\n\nHere\sis\sthe\sfull\smessage\sI\sget\sfor\sFAIL/1,\swith\sthe\npaths\slooked\sat\splaced\son\sseparate\slines\sfor\sclarity.\nAnd\sthere\sit\stries\sthe\sjap.\sdirectory\sthe\spath\snames\nare\sseverely\smangled.\sNot\sfinding\sthe\sinit.tcl\salthough\nit\sis\spresent\s(See\s[*]\sabove).\n\napplication-specific\sinitialization\sfailed:\sCan't\sfind\na\susable\sinit.tcl\sin\sthe\sfollowing\sdirectories:\n\n\s\s\s\sC:/trans/a?eab-?c/lib/tcl8.4\n\s\s\s\sC:/trans/a?b?c/lib/tcl8.4\n\s\s\s\sC:/trans/lib/tcl8.4\n\s\s\s\sC:/trans/a?b?c/library\n\s\s\s\sC:/trans/library\n\s\s\s\sC:/trans/tcl8.4.6/library\n\s\s\s\sC:/tcl8.4.6/library\n\nI\sam\sleaving\sthis\ssetup\sin\smy\sfile\ssystem\sfor\ninspection\swhen\syou\sare\sback.\n\nFrom\sthe\sinitial\slook\sit\sseems\sas\sif\swe\shave\sthree\ndifferent\sbugs\shere,\sexcept\sthat\sit\snot\syet\sclear\sif\nFAIL/2\sis\sa\sdifferent\sway\sfor\sFAIL/1\sto\sexpress\sitself,\nand\sFAIL/3\smight\sbe\sa\sfollowup\serror\sto\sFAIL/2.\n
J foundin None
J priority 7\sHigh
J resolution None
J status Open
J submitter hobbs
J subsystem 37.\sFile\sSystem
J title Correct\sutf\s"dirty"\shandling\sat\sstartup
J type Bug
K 920667ffffffffffffffffffffffffffffffffff
U hobbs
Z 99d2a1f6435af89345d2905d0d6bda07