summaryrefslogtreecommitdiffstats
path: root/win/tclWinFCmd.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2014-04-10 13:32:14 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2014-04-10 13:32:14 (GMT)
commit601ecb35c8d582572f036763b2bfb92f5b57cee5 (patch)
treefda90135c6bce6cf48e9cf64d7fd64ceab6ed504 /win/tclWinFCmd.c
parent8a33c02a15bf10f07560a9e545d20a26292eb399 (diff)
downloadtcl-601ecb35c8d582572f036763b2bfb92f5b57cee5.zip
tcl-601ecb35c8d582572f036763b2bfb92f5b57cee5.tar.gz
tcl-601ecb35c8d582572f036763b2bfb92f5b57cee5.tar.bz2
[792641f95b]: Normalized win32 paths should never contain backslash.
Diffstat (limited to 'win/tclWinFCmd.c')
-rw-r--r--win/tclWinFCmd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/win/tclWinFCmd.c b/win/tclWinFCmd.c
index 8999831..441337e 100644
--- a/win/tclWinFCmd.c
+++ b/win/tclWinFCmd.c
@@ -1156,7 +1156,12 @@ DoRemoveJustDirectory(
end:
if (errorPtr != NULL) {
+ char *p;
Tcl_WinTCharToUtf(nativePath, -1, errorPtr);
+ p = Tcl_DStringValue(errorPtr);
+ for (; *p; ++p) {
+ if (*p == '\\') *p = '/';
+ }
}
return TCL_ERROR;