summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorpooryorick <com.digitalsmarties@pooryorick.com>2023-04-18 10:47:46 (GMT)
committerpooryorick <com.digitalsmarties@pooryorick.com>2023-04-18 10:47:46 (GMT)
commit870ad938f748380b913dc7d6e6ce5fd23d2c9010 (patch)
tree3f9e861e91250dfee21b34115762139ee5e0b8f4 /generic
parentc37a94290ce2479af6467df23105e687fb5fe033 (diff)
downloadtcl-870ad938f748380b913dc7d6e6ce5fd23d2c9010.zip
tcl-870ad938f748380b913dc7d6e6ce5fd23d2c9010.tar.gz
tcl-870ad938f748380b913dc7d6e6ce5fd23d2c9010.tar.bz2
Correct CHANNEL_BLOCKED to CHANNEL_ENCODING_ERROR in Tcl_GetsObj().
Diffstat (limited to 'generic')
-rw-r--r--generic/tclIO.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c
index 7e475cc..43be5d3 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.c
@@ -4616,7 +4616,7 @@ Tcl_GetsObj(
if (GotFlag(statePtr, CHANNEL_ENCODING_ERROR)) {
UpdateInterest(chanPtr);
- ResetFlag(statePtr, CHANNEL_EOF|CHANNEL_BLOCKED);
+ ResetFlag(statePtr, CHANNEL_EOF|CHANNEL_ENCODING_ERROR);
Tcl_SetErrno(EILSEQ);
return TCL_INDEX_NONE;
}