summaryrefslogtreecommitdiffstats
path: root/generic/tclRegexp.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-05-21 22:32:01 (GMT)
committerhobbs <hobbs>2001-05-21 22:32:01 (GMT)
commit6922b724494c13415113b9004c742f9c940ba439 (patch)
treefad9470d6db8a48d9ce059f5f497a7126f4fc9b7 /generic/tclRegexp.c
parentba80e7cb63de2c073b18147f4482c208439925f9 (diff)
downloadtcl-6922b724494c13415113b9004c742f9c940ba439.zip
tcl-6922b724494c13415113b9004c742f9c940ba439.tar.gz
tcl-6922b724494c13415113b9004c742f9c940ba439.tar.bz2
* generic/tclRegexp.c (Tcl_RegExpExecObj): added use of
Tcl_GetUnicodeFromObj.
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;