diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-04-10 13:59:13 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-04-10 13:59:13 (GMT) |
commit | c21a540c4153d8738dadc191a3b2d6516990c108 (patch) | |
tree | 89e413cae334b617b7a719078df1d197859b04f3 /win/tclWinFCmd.c | |
parent | da36dfe69e58aec61afac3c396af8cf6107b0ff1 (diff) | |
parent | c5510a29171fa3a62f7a51af11bea2772bf10e3e (diff) | |
download | tcl-c21a540c4153d8738dadc191a3b2d6516990c108.zip tcl-c21a540c4153d8738dadc191a3b2d6516990c108.tar.gz tcl-c21a540c4153d8738dadc191a3b2d6516990c108.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 f14d9ff..52ea8c6 100644 --- a/win/tclWinFCmd.c +++ b/win/tclWinFCmd.c @@ -1108,7 +1108,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; |