summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-11-23 09:24:06 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-11-23 09:24:06 (GMT)
commit5b4f454e1cb62b2e67262392eb4c641b1e1f1226 (patch)
tree7582391a8f73bd7357fabf22ae021faf7159647c /generic
parent42dae31b613a27f2951b8b392e7af0e68c261555 (diff)
downloadtcl-5b4f454e1cb62b2e67262392eb4c641b1e1f1226.zip
tcl-5b4f454e1cb62b2e67262392eb4c641b1e1f1226.tar.gz
tcl-5b4f454e1cb62b2e67262392eb4c641b1e1f1226.tar.bz2
Change assert, since the new flag CHANNEL_ENCODING_ERROR could be set as well
Diffstat (limited to 'generic')
-rw-r--r--generic/tclIO.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c
index d5fbd18..652043c 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.c
@@ -6142,6 +6142,7 @@ DoReadChars(
assert(!GotFlag(statePtr, CHANNEL_EOF)
|| GotFlag(statePtr, CHANNEL_STICKY_EOF)
+ || GotFlag(statePtr, CHANNEL_ENCODING_ERROR)
|| Tcl_InputBuffered((Tcl_Channel)chanPtr) == 0);
assert(!(GotFlag(statePtr, CHANNEL_EOF|CHANNEL_BLOCKED)
== (CHANNEL_EOF|CHANNEL_BLOCKED)));