diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-11-23 09:24:06 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-11-23 09:24:06 (GMT) |
commit | 5b4f454e1cb62b2e67262392eb4c641b1e1f1226 (patch) | |
tree | 7582391a8f73bd7357fabf22ae021faf7159647c /generic | |
parent | 42dae31b613a27f2951b8b392e7af0e68c261555 (diff) | |
download | tcl-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.c | 1 |
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))); |