summaryrefslogtreecommitdiffstats
path: root/generic/tclRegexp.c
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2001-05-21 22:32:00 (GMT)
committerhobbs <hobbs@noemail.net>2001-05-21 22:32:00 (GMT)
commitdfe548d439ad00b9215225d54dfc3540eea78fec (patch)
treefad9470d6db8a48d9ce059f5f497a7126f4fc9b7 /generic/tclRegexp.c
parent8c81b912e04f41fdecd223f0e1f749aabfcf5a55 (diff)
downloadtcl-dfe548d439ad00b9215225d54dfc3540eea78fec.zip
tcl-dfe548d439ad00b9215225d54dfc3540eea78fec.tar.gz
tcl-dfe548d439ad00b9215225d54dfc3540eea78fec.tar.bz2
* generic/tclRegexp.c (Tcl_RegExpExecObj): added use of
Tcl_GetUnicodeFromObj. FossilOrigin-Name: 13a1b0b7fc5745f67b6800f3f7299ddc9050c902
Diffstat (limited to 'generic/tclRegexp.c')
-rw-r--r--generic/tclRegexp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tclRegexp.c b/generic/tclRegexp.c
index 4430444..2a32675 100644
--- a/generic/tclRegexp.c
+++ b/generic/tclRegexp.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: tclRegexp.c,v 1.10 1999/10/13 02:22:18 hobbs Exp $
+ * RCS: @(#) $Id: tclRegexp.c,v 1.11 2001/05/21 22:32:01 hobbs Exp $
*/
#include "tclInt.h"
@@ -455,8 +455,7 @@ Tcl_RegExpExecObj(interp, re, objPtr, offset, nmatches, flags)
regexpPtr->string = NULL;
regexpPtr->objPtr = objPtr;
- udata = Tcl_GetUnicode(objPtr);
- length = Tcl_GetCharLength(objPtr);
+ udata = Tcl_GetUnicodeFromObj(objPtr, &length);
if (offset > length) {
offset = length;