Fossil

Artifact [6c5c7152]
Login

Artifact 6c5c71528cdd4990182549af24f2859eda686ac3:

Ticket change [6c5c7152] - Ticket [36cb6b45] in windows, fossil allows addition of the same file twice status still Open with 1 other change by anonymous 2010-01-20 19:26:25.
D 2010-01-20T19:26:25
J +comment \n\n<hr><i>anonymous\sclaiming\sto\sbe\sJose\sF.\sGimenez\sadded\son\s2010-01-20\s19:26:25:</i><br>\nrwilson,\sthere\sis\san\seasier\sway\sto\sget\sthe\sreal\sfilename\sin\swindows.\sCheck\sthis\sC\sfunction:\r\n<verbatim>\r\n\s\s\sBOOL\sGetRealFilename(\sconst\schar\s*\sszFilename,\schar\s*\sszRealFilename\s)\r\n\s\s\s{\r\n\s\s\s\s\s\schar\sszTempFilename[\sMAX_PATH\s];\r\n\s\s\s\s\s\sif(\sGetShortPathName(\sszFilename,\sszTempFilename,\sMAX_PATH\s)\s)\r\n\s\s\s\s\s\s\s\s\sif(\sGetLongPathName(\sszTempFilename,\sszRealFilename,\sMAX_PATH\s)\s)\r\n\s\s\s\s\s\s\s\s\s\s\s\sreturn\sTRUE;\r\n\s\s\s\s\s\sreturn\sFALSE;\r\n\s\s\s}\r\n</verbatim>\r\nAlso,\sit\sallows\sto\scheck\sthe\sexistance\sof\sa\sfile,\ssince\sit\sreturns\sFALSE\sif\sthe\sfile\sdoesn't\sexist.\r\n\r\nBut\sthat\sdoesn't\sfix\sthe\sproblem\sat\s100%.\sYou\scould\srename\sa\sfile\sin\syour\sworking\sdirectory,\schanging\sonly\scase,\sand\sget\sagain\sin\sa\strouble.\sSo,\sthe\scheck\shave\sto\sbe\sdone\sin\sthe\srepository.\r\n\r\nThe\sdrh\sfix\ssolves\sthe\smost\scases,\salthough\sit\sdoesn't\sdeal\swith\snon\sascii\schars.\sThanks,\showever!
K 36cb6b45fd9d31f6bc4bd4ad87f18aad50e5bce9
U anonymous
Z 7fa04aa21fe58e6fbc81a09ffd3f2c68