summaryrefslogtreecommitdiffstats
path: root/generic/tclUtil.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2008-08-21 23:19:49 (GMT)
committerhobbs <hobbs>2008-08-21 23:19:49 (GMT)
commitb960e085fa96bdac779fd6c41f343d7bf4d6e4e6 (patch)
treefef1084961ccc38ee1349d3c0e988d15a9450589 /generic/tclUtil.c
parent2b9c55d714bec1b7497dba6f79d2c54f13e9c07a (diff)
downloadtcl-b960e085fa96bdac779fd6c41f343d7bf4d6e4e6.zip
tcl-b960e085fa96bdac779fd6c41f343d7bf4d6e4e6.tar.gz
tcl-b960e085fa96bdac779fd6c41f343d7bf4d6e4e6.tar.bz2
* tests/regexp.test, tests/regexpComp.test: correct re2glob ***=
* generic/tclUtil.c (TclReToGlob): translation from exact to anywhere-in-string match. [Bug 2065115]
Diffstat (limited to 'generic/tclUtil.c')
-rw-r--r--generic/tclUtil.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c
index a1a0861..5f20af1 100644
--- a/generic/tclUtil.c
+++ b/generic/tclUtil.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUtil.c,v 1.99 2008/08/17 14:15:26 msofer Exp $
+ * RCS: @(#) $Id: tclUtil.c,v 1.100 2008/08/21 23:19:49 hobbs Exp $
*/
#include "tclInt.h"
@@ -3279,10 +3279,9 @@ TclReToGlob(
*/
if ((reStrLen >= 4) && (memcmp("***=", reStr, 4) == 0)) {
- if (exactPtr) {
- *exactPtr = 1;
- }
+ Tcl_DStringAppend(dsPtr, "*", 1);
Tcl_DStringAppend(dsPtr, reStr + 4, reStrLen - 4);
+ Tcl_DStringAppend(dsPtr, "*", 1);
return TCL_OK;
}