<i>Glob munges 1st char on Win98</i> status still Open with 4 other changes
by
.
D 2002-03-18T15:35:52
J icomment Logged\sIn:\sNO\s\n\nHang\son!\s\sI\sjust\sremembered\sthat\sto\ssolve\sthe\sbig\sslowdown\s\non\sWin95/98\swith\sthe\svfs\scode\swe\shad\sto\smake\snormalized\s\npaths\son\sthose\splatforms\shave\sbackslashes\s(and\sbe\s\nthe\s'short'\sform\sof\sa\spath).\s\sOn\sWin\sNT/2000/XP\sthe\s\nnormalized\sform\shas\sforward\sslashes\sand\sthe\s'long\sform'.\n\nThis\smeans\s'pwd'\sshould\sbe\sC:\\\son\s98,\sand\sthe\sproblem\sis\s\naround\sline\s1730\sin\stclIOUtil.c.\s\sHow\sabout\susing\sthe\s\nfollowing\sblock\sof\scode\sthere:\n\ncwdDir\s=\sTcl_DuplicateObj(cwd);\nTcl_IncrRefCount(cwdDir);\ncwdStr\s=\sTcl_GetStringFromObj(cwdDir,\s\n&cwdLen);\n#ifdef\s__WIN32__\nif\s((cwdStr[cwdLen-1]\s!=\ssep)\s&&\s(cwdStr\n[cwdLen-1]\s!=\s'\\\\'))\s{\n#else\nif\s(cwdStr[cwdLen-1]\s!=\ssep)\s{\n#endif\n\s\s\s\sTcl_AppendToObj(cwdDir,\s&sep,\s1);\n\s\s\s\scwdLen++;\n\s\s\s\s/*\sNote:\scwdStr\smay\sno\slonger\sbe\sa\s\nvalid\spointer\s*/\n}\n\n\n
J login nobody
J mimetype text/plain
J username nobody
K 530960ffffffffffffffffffffffffffffffffff
U nobody
Z 374f1496a1cb9e58da3605ea69caa055