summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorpooryorick <com.digitalsmarties@pooryorick.com>2023-01-25 02:52:24 (GMT)
committerpooryorick <com.digitalsmarties@pooryorick.com>2023-01-25 02:52:24 (GMT)
commitca4e244cca3e93fb8689fe1cef85954da16ff989 (patch)
treec2321e196bba19f06f9a2cd1fd815c24210acc78 /generic
parentc18f5f7f8caa27fa6dc03bd79a4136391cad620f (diff)
downloadtcl-ca4e244cca3e93fb8689fe1cef85954da16ff989.zip
tcl-ca4e244cca3e93fb8689fe1cef85954da16ff989.tar.gz
tcl-ca4e244cca3e93fb8689fe1cef85954da16ff989.tar.bz2
Test TableFromUtfProc() with strict handling of encoding errors.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclEncoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclEncoding.c b/generic/tclEncoding.c
index d10d9ca..5ba7763 100644
--- a/generic/tclEncoding.c
+++ b/generic/tclEncoding.c
@@ -3199,7 +3199,7 @@ TableFromUtfProc(
word = fromUnicode[(ch >> 8)][ch & 0xFF];
if ((word == 0) && (ch != 0)) {
- if ((STOPONERROR) && (flags & TCL_ENCODING_CHAR_LIMIT)) {
+ if ((STOPONERROR)) {
result = TCL_CONVERT_UNKNOWN;
break;
}