<i>Glob munges 1st char on Win98</i> status still Open with 5 other changes
by
.
D 2002-03-18T05:56:54
J icomment Logged\sIn:\sYES\s\nuser_id=32170\n\nI\scan't\sreally\sdebug\sthis\ssince\sI\sdon't\shave\sany\sWin98\s\nmachines\sto\stest\son\sat\sall.\s\sHowever,\sthe\sbug\soccurs\sfor\s\none\sof\sthree\spotential\sreasons.\s\sFirst\soff,\sthe\sway\s'glob\s\n*'\sin\sthe\snew\sfs\sworks\sis\sto\sdo\sa\s'glob\s-dir\s[pwd]\s*'\sand\s\nstrip\soff\sthe\spwd\s(for\sreasons\sexplained\sin\sthe\scomments\sin\s\nthe\scode).\s\sWhat\sis\shappening\stherefore\sis\sthat\stoo\smuch\sis\s\nbeing\sstripped\soff.\n\nWhy?\s\sBack\sto\sthe\sthree\spotential\sreasons:\n\n(i)\sthere's\sa\sbug\sin\sthe\scode\sdoing\sthe\sstripping,\s(around\s\nline\s1730\sin\stclIOUtil.c)\n\n(ii)\sthere's\san\sassumption\sin\sthe\scode\s(in\sa\svariety\sof\s\nplaces,\sI\sbelieve),\sthat\s'[pwd]'\sis\sa\snormalized\spath\swhich\s\ndoes\snot\send\sin\sa\sdirectory\sdelimiter,\s_unless_\sit\sis\sthe\s\nname\sof\sa\sroot\svolume,\sin\swhich\scase\sit\swill\send\sin\sa\s\ndelimiter.\s\sOn\sWindows,\snormalized\spaths\scontain\sforward\s\nslashes,\snot\sbackslashes.\s\sSo\sI\swould\shope\s'pwd'\sis\s'C:/'\s\nin\sthe\sabove\scase.\s\s(and\snot\sC:\\\\\sor\sC:).\s\sSo,\splease\scheck\s\nthis\sout!\s\sIf\s'pwd'\sis\sincorrect,\sthen\scode\selsewhere\sneeds\s\nfixing.\n\n(iii)\ssince\sthe\sstripping\sworks\ssimply\sbe\schecking\show\s\nlong\s'pwd'\sis,\sand\sremoving\sthat,\sif\s'glob\s-dir\s[pwd]\s*'\sis\s\nreturning\sthe\swrong\sanswer,\s(e.g.\sit\sreturns\sC:Windows,\s\nskipping\sthe\sslash),\sthen\sthe\sfault\slies\sin\s\nTclpMatchInDirectory\sin\swin/tclWinFile.c\n\nHope\sthat\shelps\syou\sto\strack\sit\sdown.\n\nVince.\n\n\n\n\n
J login vincentdarley
J mimetype text/plain
J priority 7\sHigh
J username vincentdarley
K 530960ffffffffffffffffffffffffffffffffff
U vincentdarley
Z 9783096c0968ace1a77998ac45a8c275