summaryrefslogtreecommitdiffstats
path: root/generic/tclTest.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-04-24 10:23:33 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-04-24 10:23:33 (GMT)
commitda116b95a31241dc3abb6eed7d8f8eb3a9487232 (patch)
tree3b98b64461c97646bdbd3e8235aad6b7bf1bb2c3 /generic/tclTest.c
parentb48319b304980c06ca5dd093770f8234eb8dbec5 (diff)
parent2ca7ab9af0d59c9907dde3d844e1785d33df4812 (diff)
downloadtcl-da116b95a31241dc3abb6eed7d8f8eb3a9487232.zip
tcl-da116b95a31241dc3abb6eed7d8f8eb3a9487232.tar.gz
tcl-da116b95a31241dc3abb6eed7d8f8eb3a9487232.tar.bz2
Merge 8.6. This mainly introduces the overlong check into Tcl_UtfPrev(). 10 testcase changed results, all of them due to the Tcl_UtfPrev() improvement. Tcl_UtfNext() is not affected: Previous implementation was based on Tcl_UtfToUniChar(), which already did this check.
Diffstat (limited to 'generic/tclTest.c')
-rw-r--r--generic/tclTest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c
index 008fdb7..19de8ee 100644
--- a/generic/tclTest.c
+++ b/generic/tclTest.c
@@ -6849,10 +6849,10 @@ TestUtfNextCmd(
memcpy(buffer + 1, bytes, numBytes);
buffer[0] = buffer[numBytes + 1] = '\x00';
- first = Tcl_UtfNext(buffer + 1);
+ first = TclUtfNext(buffer + 1);
while ((buffer[0] = *p++) != '\0') {
/* Run Tcl_UtfNext with many more possible bytes at src[-1], all should give the same result */
- result = Tcl_UtfNext(buffer + 1);
+ result = TclUtfNext(buffer + 1);
if (first != result) {
Tcl_AppendResult(interp, "Tcl_UtfNext is not supposed to read src[-1]", NULL);
return TCL_ERROR;
@@ -6908,7 +6908,7 @@ TestUtfPrevCmd(
bytes = (char *) Tcl_SetByteArrayLength(copy, numBytes+1);
bytes[numBytes] = '\0';
- result = Tcl_UtfPrev(bytes + offset, bytes);
+ result = TclUtfPrev(bytes + offset, bytes);
Tcl_SetObjResult(interp, Tcl_NewIntObj(result - bytes));
Tcl_DecrRefCount(copy);