diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-04-10 13:32:14 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-04-10 13:32:14 (GMT) |
commit | c5510a29171fa3a62f7a51af11bea2772bf10e3e (patch) | |
tree | fda90135c6bce6cf48e9cf64d7fd64ceab6ed504 /win/tclWinFCmd.c | |
parent | 7e0a9605b9a1e3bc52ff27cdbc7311608f4cce18 (diff) | |
download | tcl-c5510a29171fa3a62f7a51af11bea2772bf10e3e.zip tcl-c5510a29171fa3a62f7a51af11bea2772bf10e3e.tar.gz tcl-c5510a29171fa3a62f7a51af11bea2772bf10e3e.tar.bz2 |
[792641f95b]: Normalized win32 paths should never contain backslash.
Diffstat (limited to 'win/tclWinFCmd.c')
-rw-r--r-- | win/tclWinFCmd.c | 5 |
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; |