summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorhobbs <hobbs>2008-08-21 23:19:02 (GMT)
committerhobbs <hobbs>2008-08-21 23:19:02 (GMT)
commit4ad1d554a92681b3d78876608ad0671c76098978 (patch)
treea8fca5285c96617cf3657e31c0d1504d11f63f38 /generic
parenta7d5eb42a94f26a9380e19ee52f52bf62c92cf50 (diff)
downloadtcl-4ad1d554a92681b3d78876608ad0671c76098978.zip
tcl-4ad1d554a92681b3d78876608ad0671c76098978.tar.gz
tcl-4ad1d554a92681b3d78876608ad0671c76098978.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')
-rw-r--r--generic/tclUtil.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c
index e2f01a4..9464cd5 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.97.2.1 2008/08/17 14:12:35 msofer Exp $
+ * RCS: @(#) $Id: tclUtil.c,v 1.97.2.2 2008/08/21 23:19:05 hobbs Exp $
*/
#include "tclInt.h"
@@ -3278,10 +3278,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;
}