summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-01-27 10:16:36 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-01-27 10:16:36 (GMT)
commit9cc6bfd27a7df39781fec100fb172ac516802891 (patch)
tree8b75263da364f92dbe65dd56133db933a2265d7d /tools
parent1aade032020e2bb6cc04e0e487fe0a1c5e22f31a (diff)
parent82f2bed5fe26cb420a472abc95b92120a84e02cf (diff)
downloadtcl-9cc6bfd27a7df39781fec100fb172ac516802891.zip
tcl-9cc6bfd27a7df39781fec100fb172ac516802891.tar.gz
tcl-9cc6bfd27a7df39781fec100fb172ac516802891.tar.bz2
Merge 8.7
Diffstat (limited to 'tools')
-rw-r--r--tools/genStubs.tcl5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/genStubs.tcl b/tools/genStubs.tcl
index 3f4632d..47b8ad4 100644
--- a/tools/genStubs.tcl
+++ b/tools/genStubs.tcl
@@ -257,6 +257,7 @@ proc genStubs::rewriteFile {file text} {
return
}
set in [open ${file} r]
+ fconfigure $in -eofchar "\032 {}" -encoding utf-8
set out [open ${file}.new w]
fconfigure $out -translation lf -encoding utf-8
@@ -1100,7 +1101,7 @@ proc genStubs::emitInit {name textVar} {
}
foreach intf [array names interfaces] {
if {[info exists hooks($intf)]} {
- if {[lsearch -exact $hooks($intf) $name] >= 0} {
+ if {$name in $hooks($intf)} {
set root 0
break
}
@@ -1191,7 +1192,7 @@ proc genStubs::init {} {
set outDir [lindex $argv 0]
foreach file [lrange $argv 1 end] {
- source $file
+ source -encoding utf-8 $file
}
foreach name [lsort [array names interfaces]] {