diff options
author | hobbs <hobbs> | 2001-05-21 22:32:01 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2001-05-21 22:32:01 (GMT) |
commit | 6922b724494c13415113b9004c742f9c940ba439 (patch) | |
tree | fad9470d6db8a48d9ce059f5f497a7126f4fc9b7 /generic | |
parent | ba80e7cb63de2c073b18147f4482c208439925f9 (diff) | |
download | tcl-6922b724494c13415113b9004c742f9c940ba439.zip tcl-6922b724494c13415113b9004c742f9c940ba439.tar.gz tcl-6922b724494c13415113b9004c742f9c940ba439.tar.bz2 |
* generic/tclRegexp.c (Tcl_RegExpExecObj): added use of
Tcl_GetUnicodeFromObj.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclRegexp.c | 5 |
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; |