summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-02-23 10:44:56 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-02-23 10:44:56 (GMT)
commitbf7b1adb896dbe4f79efb038aa0ecaebbdd3919c (patch)
tree30b0b6c2c25201b8f21d24e1b123ec9e4a5b8506
parentc3e063b0aa8200f75aef7612fe3d63d09796ad67 (diff)
downloadtcl-bf7b1adb896dbe4f79efb038aa0ecaebbdd3919c.zip
tcl-bf7b1adb896dbe4f79efb038aa0ecaebbdd3919c.tar.gz
tcl-bf7b1adb896dbe4f79efb038aa0ecaebbdd3919c.tar.bz2
See [d19fe0a5b] for follow-up to previous commit
-rw-r--r--generic/tclEncoding.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/generic/tclEncoding.c b/generic/tclEncoding.c
index ecec6e9..2b3b614 100644
--- a/generic/tclEncoding.c
+++ b/generic/tclEncoding.c
@@ -2516,13 +2516,10 @@ UnicodeToUtfProc(
result = TCL_CONVERT_NOSPACE;
} else {
/* destination is not full, so we really are at the end now */
- if (flags & TCL_ENCODING_STOPONERROR) {
- result = TCL_CONVERT_SYNTAX;
- } else {
- dst += Tcl_UniCharToUtf(0xFFFD, dst);
- numChars++;
- src++;
- }
+ result = TCL_OK;
+ dst += Tcl_UniCharToUtf(0xFFFD, dst);
+ numChars++;
+ src++;
}
}
*srcReadPtr = src - srcStart;