summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclIO.c')
-rw-r--r--generic/tclIO.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c
index 71ad637..3c1d4b0 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.c
@@ -7923,11 +7923,11 @@ Tcl_GetChannelOption(
return TCL_OK;
}
}
- if (len == 0 || HaveOpt(1, "-strictencoding")) {
+ if (len == 0 || HaveOpt(1, "-nocomplainencoding")) {
if (len == 0) {
- Tcl_DStringAppendElement(dsPtr, "-strictencoding");
+ Tcl_DStringAppendElement(dsPtr, "-nocomplainencoding");
}
- Tcl_DStringAppendElement(dsPtr,"0");
+ Tcl_DStringAppendElement(dsPtr,"1");
if (len > 0) {
return TCL_OK;
}
@@ -8185,16 +8185,16 @@ Tcl_SetChannelOption(
ResetFlag(statePtr, CHANNEL_EOF|CHANNEL_STICKY_EOF|CHANNEL_BLOCKED);
statePtr->inputEncodingFlags &= ~TCL_ENCODING_END;
return TCL_OK;
- } else if (HaveOpt(1, "-strictencoding")) {
+ } else if (HaveOpt(1, "-nocomplainencoding")) {
int newMode;
if (Tcl_GetBoolean(interp, newValue, &newMode) == TCL_ERROR) {
return TCL_ERROR;
}
- if (newMode) {
+ if (!newMode) {
if (interp) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
- "bad value for -strictencoding: only false allowed",
+ "bad value for -nocomplainencoding: only true allowed",
-1));
}
return TCL_ERROR;