We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aacd5ee commit e4a0bd4Copy full SHA for e4a0bd4
library/safe.tcl
@@ -987,14 +987,14 @@ proc ::safe::AliasSource {child args} {
987
fconfigure $f -encoding $encoding
988
}
989
set contents [read $f]
990
- # See [Bug 1d26e580cf]
991
- if {[string index $contents 0] eq "\uFEFF"} {
992
- set contents [string range $contents 1 end]
993
- }
994
close $f
995
::interp eval $child [list info script $file]
996
} msg opt]
997
if {$code == 0} {
+ # See [Bug 1d26e580cf]
+ if {[string index $contents 0] eq "\uFEFF"} {
+ set contents [string range $contents 1 end]
+ }
998
set code [catch {::interp eval $child $contents} msg opt]
999
set replacementMsg $msg
1000
0 commit comments