From 4a39b416c8cd105a1c8bcd0e88f21cff8abe51e6 Mon Sep 17 00:00:00 2001 From: dgp Date: Tue, 3 Oct 2006 18:20:33 +0000 Subject: Attempt to correct regression filename-16.6 due to 2006-05-13 commit. --- generic/tclFileName.c | 8 ++++++-- 1 file 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++; } -- cgit v0.12