From 5b4f454e1cb62b2e67262392eb4c641b1e1f1226 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Wed, 23 Nov 2022 09:24:06 +0000 Subject: Change assert, since the new flag CHANNEL_ENCODING_ERROR could be set as well --- generic/tclIO.c | 1 + 1 file changed, 1 insertion(+) 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))); -- cgit v0.12