diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-02-23 10:44:56 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-02-23 10:44:56 (GMT) |
commit | bf7b1adb896dbe4f79efb038aa0ecaebbdd3919c (patch) | |
tree | 30b0b6c2c25201b8f21d24e1b123ec9e4a5b8506 | |
parent | c3e063b0aa8200f75aef7612fe3d63d09796ad67 (diff) | |
download | tcl-bf7b1adb896dbe4f79efb038aa0ecaebbdd3919c.zip tcl-bf7b1adb896dbe4f79efb038aa0ecaebbdd3919c.tar.gz tcl-bf7b1adb896dbe4f79efb038aa0ecaebbdd3919c.tar.bz2 |
See [d19fe0a5b] for follow-up to previous commit
-rw-r--r-- | generic/tclEncoding.c | 11 |
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; |