From d3eb8cf5e3d7b1535ba73e95dee737c08a36d3bb Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Mon, 25 May 2020 09:02:15 +0000 Subject: Fix compiled "string is " for TCL_UTF_MAX=4 build, for characters > U+FFFF. --- generic/tclExecute.c | 6 ++++-- generic/tclInt.h | 4 +++- generic/tclUtf.c | 16 ++++++++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/generic/tclExecute.c b/generic/tclExecute.c index eeb69de..76feb79 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -5915,9 +5915,11 @@ TEBCresume( ustring1 = Tcl_GetUnicodeFromObj(valuePtr, &length); match = 1; if (length > 0) { + int ch; end = ustring1 + length; - for (p=ustring1 ; p