summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpooryorick <com.digitalsmarties@pooryorick.com>2023-04-21 09:19:51 (GMT)
committerpooryorick <com.digitalsmarties@pooryorick.com>2023-04-21 09:19:51 (GMT)
commitb794cb03e1ffc8d198a9cd1e0b7d8ae1406b258f (patch)
tree63446728c212ab86a81145ee1b222adc0aa72a72
parentc091b78af60d2f2f46c162bed19465380cf8d4bf (diff)
downloadtcl-b794cb03e1ffc8d198a9cd1e0b7d8ae1406b258f.zip
tcl-b794cb03e1ffc8d198a9cd1e0b7d8ae1406b258f.tar.gz
tcl-b794cb03e1ffc8d198a9cd1e0b7d8ae1406b258f.tar.bz2
Set the encoding profile to strict in Tcl_FSEvalFileEx().
-rw-r--r--generic/tclIOUtil.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c
index f2f91a7..ae44518 100644
--- a/generic/tclIOUtil.c
+++ b/generic/tclIOUtil.c
@@ -1734,6 +1734,11 @@ Tcl_FSEvalFileEx(
Tcl_CloseEx(interp,chan,0);
return result;
}
+ if (Tcl_SetChannelOption(interp, chan, "-profile", "strict")
+ != TCL_OK) {
+ Tcl_CloseEx(interp,chan,0);
+ return result;
+ }
TclNewObj(objPtr);
Tcl_IncrRefCount(objPtr);