From 25b3cffdd2b616b796b57e6f6766456cfb6ce8e7 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Fri, 2 Dec 2022 08:35:05 +0000 Subject: Oops, that's the wrong one ... --- generic/tclIO.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generic/tclIO.c b/generic/tclIO.c index 0686571..93d1d46 100644 --- a/generic/tclIO.c +++ b/generic/tclIO.c @@ -8251,7 +8251,7 @@ Tcl_SetChannelOption( return TCL_ERROR; } if (newMode) { - ResetFlag(statePtr, CHANNEL_ENCODING_STRICT); + SetFlag(statePtr, CHANNEL_ENCODING_NOCOMPLAIN); } else { ResetFlag(statePtr, CHANNEL_ENCODING_NOCOMPLAIN); } @@ -8263,7 +8263,7 @@ Tcl_SetChannelOption( return TCL_ERROR; } if (newMode) { - ResetFlag(statePtr, CHANNEL_ENCODING_NOCOMPLAIN); + SetFlag(statePtr, CHANNEL_ENCODING_STRICT); } else { ResetFlag(statePtr, CHANNEL_ENCODING_STRICT); } -- cgit v0.12