diff options
author | hobbs <hobbs> | 2001-09-21 19:09:03 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2001-09-21 19:09:03 (GMT) |
commit | 18a951c0569d4182f8888aa6fa036d9853a6c02c (patch) | |
tree | 40c070fc14c587866e9895239523c8e24f1cbe45 /generic/tclExecute.c | |
parent | a2ca8acedd3fd7649e2448632d71f4a10e00f6f9 (diff) | |
download | tcl-18a951c0569d4182f8888aa6fa036d9853a6c02c.zip tcl-18a951c0569d4182f8888aa6fa036d9853a6c02c.tar.gz tcl-18a951c0569d4182f8888aa6fa036d9853a6c02c.tar.bz2 |
* generic/tclExecute.c (TclExecuteByteCode): corrected
INST_STR_CMP else case for strings to pass true utf char length to
Tcl_UtfNCmp.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r-- | generic/tclExecute.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c index b189869..97a1da2 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.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: tclExecute.c,v 1.33 2001/09/19 18:18:52 hobbs Exp $ + * RCS: @(#) $Id: tclExecute.c,v 1.34 2001/09/21 19:09:03 hobbs Exp $ */ #include "tclInt.h" @@ -2161,6 +2161,11 @@ TclExecuteByteCode(interp, codePtr) */ s1 = Tcl_GetStringFromObj(valuePtr, &s1len); s2 = Tcl_GetStringFromObj(value2Ptr, &s2len); + /* + * These have to be in true chars + */ + s1len = Tcl_NumUtfChars(s1, s1len); + s2len = Tcl_NumUtfChars(s2, s2len); iResult = Tcl_UtfNcmp(s1, s2, (size_t) ((s1len < s2len) ? s1len : s2len)); } |