summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/tclEncoding.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tclEncoding.c b/generic/tclEncoding.c
index c5ecc46..c4db314 100644
--- a/generic/tclEncoding.c
+++ b/generic/tclEncoding.c
@@ -2595,6 +2595,7 @@ Utf32ToUtfProc(
&& ((ch & ~0x7FF) == 0xD800))) {
if (STOPONERROR) {
result = TCL_CONVERT_SYNTAX;
+ ch = 0;
break;
}
}