diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-06-12 13:40:18 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-06-12 13:40:18 (GMT) |
commit | 291945c999f2b9d2ec4b034f26725482e6c3b808 (patch) | |
tree | 6f42f37ac4efb2c54d7bd634ecf3349410349d39 | |
parent | 10551ef181140c58b4355fe31bc05d8842a27ee6 (diff) | |
download | tcl-291945c999f2b9d2ec4b034f26725482e6c3b808.zip tcl-291945c999f2b9d2ec4b034f26725482e6c3b808.tar.gz tcl-291945c999f2b9d2ec4b034f26725482e6c3b808.tar.bz2 |
Move BOM handling a few lines latercore-bug-1d26e580cf
-rw-r--r-- | library/safe.tcl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/safe.tcl b/library/safe.tcl index 9c605f2..5baacb5 100644 --- a/library/safe.tcl +++ b/library/safe.tcl @@ -987,14 +987,14 @@ proc ::safe::AliasSource {child args} { fconfigure $f -encoding $encoding } set contents [read $f] - # See [Bug 1d26e580cf] - if {[string index $contents 0] eq "\uFEFF"} { - set contents [string range $contents 1 end] - } close $f ::interp eval $child [list info script $file] } msg opt] if {$code == 0} { + # See [Bug 1d26e580cf] + if {[string index $contents 0] eq "\uFEFF"} { + set contents [string range $contents 1 end] + } set code [catch {::interp eval $child $contents} msg opt] set replacementMsg $msg } |