summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-12-02 08:35:05 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-12-02 08:35:05 (GMT)
commit25b3cffdd2b616b796b57e6f6766456cfb6ce8e7 (patch)
tree6228f34999d526c5e0f8a3a98819893a40a62c1e /generic
parentae115792863b91165a1da7d6d51509061cb574b9 (diff)
downloadtcl-25b3cffdd2b616b796b57e6f6766456cfb6ce8e7.zip
tcl-25b3cffdd2b616b796b57e6f6766456cfb6ce8e7.tar.gz
tcl-25b3cffdd2b616b796b57e6f6766456cfb6ce8e7.tar.bz2
Oops, that's the wrong one ...
Diffstat (limited to 'generic')
-rw-r--r--generic/tclIO.c4
1 files 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);
}