summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.c
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2022-07-22 18:38:30 (GMT)
committersebres <sebres@users.sourceforge.net>2022-07-22 18:38:30 (GMT)
commit47699b8fff2e41463af41ad4aaece58038550955 (patch)
treeb1d3d108be58a69dcaedd80cf53d69b9c36356cc /generic/tclIO.c
parent255250308e8dba52bc7e154ed96e6b15859b064f (diff)
downloadtcl-47699b8fff2e41463af41ad4aaece58038550955.zip
tcl-47699b8fff2e41463af41ad4aaece58038550955.tar.gz
tcl-47699b8fff2e41463af41ad4aaece58038550955.tar.bz2
EOF seemed to reset INPUT_SAW_CR previously, so do it now explicitely (satisfying the test ?chan?io-6.46)
Diffstat (limited to 'generic/tclIO.c')
-rw-r--r--generic/tclIO.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c
index e102675..e03b9c5 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.c
@@ -4825,7 +4825,7 @@ Tcl_GetsObj(
Tcl_SetObjLength(objPtr, oldLength);
CommonGetsCleanup(chanPtr);
copiedTotal = -1;
- ResetFlag(statePtr, CHANNEL_BLOCKED);
+ ResetFlag(statePtr, CHANNEL_BLOCKED|INPUT_SAW_CR);
goto done;
}
goto gotEOL;