summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-03-22 08:32:10 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-03-22 08:32:10 (GMT)
commit133af7524b7bdfc62eb504a932faef09a0ae03e9 (patch)
treeb390e58f8a2de155a3ad9772da177165e60a0adc /generic/tclIO.c
parent0fcb3ce5dcddcc07e9c3f294dc146a4442e9efbb (diff)
downloadtcl-133af7524b7bdfc62eb504a932faef09a0ae03e9.zip
tcl-133af7524b7bdfc62eb504a932faef09a0ae03e9.tar.gz
tcl-133af7524b7bdfc62eb504a932faef09a0ae03e9.tar.bz2
Since TCL_ENCODING_PROFILE_DEFAULT == TCL_ENCODING_PROFILE_TCL8 (on Tcl 8), we can simplify.
Diffstat (limited to 'generic/tclIO.c')
-rw-r--r--generic/tclIO.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c
index 7f74e2e..b574e0d 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.c
@@ -1703,11 +1703,11 @@ Tcl_CreateChannel(
statePtr->inputEncodingState = NULL;
statePtr->inputEncodingFlags = TCL_ENCODING_START;
TCL_ENCODING_PROFILE_SET(statePtr->inputEncodingFlags,
- TCL_ENCODING_PROFILE_DEFAULT);
+ TCL_ENCODING_PROFILE_TCL8);
statePtr->outputEncodingState = NULL;
statePtr->outputEncodingFlags = TCL_ENCODING_START;
TCL_ENCODING_PROFILE_SET(statePtr->outputEncodingFlags,
- TCL_ENCODING_PROFILE_DEFAULT);
+ TCL_ENCODING_PROFILE_TCL8);
/*
* Set the channel up initially in AUTO input translation mode to accept