diff options
author | dgp <dgp@users.sourceforge.net> | 2006-10-03 18:20:33 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2006-10-03 18:20:33 (GMT) |
commit | c4d1887255994790717332c7f5246d526358f3b1 (patch) | |
tree | 14b728b8f4c8981c70a78c8cd2609e887ea6c456 /generic/tclFileName.c | |
parent | ac2ac6ed4da799137f85349b51ca4f209246df80 (diff) | |
download | tcl-c4d1887255994790717332c7f5246d526358f3b1.zip tcl-c4d1887255994790717332c7f5246d526358f3b1.tar.gz tcl-c4d1887255994790717332c7f5246d526358f3b1.tar.bz2 |
Attempt to correct regression filename-16.6 due to 2006-05-13 commit.
Diffstat (limited to 'generic/tclFileName.c')
-rw-r--r-- | generic/tclFileName.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c index 9dce822..12a50e5 100644 --- a/generic/tclFileName.c +++ b/generic/tclFileName.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclFileName.c,v 1.40.2.14 2006/10/02 18:30:40 dgp Exp $ + * RCS: @(#) $Id: tclFileName.c,v 1.40.2.15 2006/10/03 18:20:33 dgp Exp $ */ #include "tclInt.h" @@ -2351,7 +2351,11 @@ TclDoGlob(interp, separators, headPtr, tail, types) break; } if (tclPlatform != TCL_PLATFORM_MAC) { - Tcl_DStringAppend(headPtr, tail, 1); + if (*tail == '\\') { + Tcl_DStringAppend(headPtr, separators, 1); + } else { + Tcl_DStringAppend(headPtr, tail, 1); + } } count++; } |