summaryrefslogtreecommitdiffstats
path: root/library/safe.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-12 15:33:00 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-12 15:33:00 (GMT)
commit4d0756c2ef67429b8b13e1b3a5d7992bc7a84391 (patch)
tree8898e45fec8afa65ad175633a51a6d2894cc4de3 /library/safe.tcl
parent27c296de8e65376f96550bb4a404b07ab014c1a4 (diff)
parent01b6979fa9f2c248349d3fc94fc9358f0e7d635b (diff)
downloadtcl-4d0756c2ef67429b8b13e1b3a5d7992bc7a84391.zip
tcl-4d0756c2ef67429b8b13e1b3a5d7992bc7a84391.tar.gz
tcl-4d0756c2ef67429b8b13e1b3a5d7992bc7a84391.tar.bz2
Merge 8.7 (adding "-encoding utf-8")
Diffstat (limited to 'library/safe.tcl')
-rw-r--r--library/safe.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/safe.tcl b/library/safe.tcl
index cc4a194..80bb227 100644
--- a/library/safe.tcl
+++ b/library/safe.tcl
@@ -623,14 +623,14 @@ proc ::safe::InterpInit {
# other procedures defined:
if {[catch {::interp eval $child {
- source [file join $tcl_library init.tcl]
+ source -encoding utf-8 [file join $tcl_library init.tcl]
}} msg opt]} {
Log $child "can't source init.tcl ($msg)"
return -options $opt "can't source init.tcl into child $child ($msg)"
}
if {[catch {::interp eval $child {
- source [file join $tcl_library tm.tcl]
+ source -encoding utf-8 [file join $tcl_library tm.tcl]
}} msg opt]} {
Log $child "can't source tm.tcl ($msg)"
return -options $opt "can't source tm.tcl into child $child ($msg)"