File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 5
5
# library via the stubs table. This file is used to generate the
6
6
# tclOODecls.h, tclOOIntDecls.h and tclOOStubInit.c files.
7
7
#
8
- # Copyright (c) 2008 - 2013 by Donal K. Fellows.
8
+ # Copyright © 2008 - 2013 Donal K. Fellows.
9
9
#
10
10
# See the file " license.terms" for information on usage and redistribution of
11
11
# this file, and for a DISCLAIMER OF ALL WARRANTIES.
Original file line number Diff line number Diff line change 7
7
# If you edit this file, advance the revision number (and the epoch
8
8
# if the new stubs are not backward compatible) in tclTomMathDecls.h
9
9
#
10
- # Copyright (c) 2005 by Kevin B. Kenny. All rights reserved.
10
+ # Copyright © 2005 Kevin B. Kenny. All rights reserved.
11
11
#
12
12
# See the file " license.terms" for information on usage and redistribution
13
13
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
Original file line number Diff line number Diff line change @@ -257,6 +257,7 @@ proc genStubs::rewriteFile {file text} {
257
257
return
258
258
}
259
259
set in [open ${file} r]
260
+ fconfigure $in -eofchar " \032 {}" -encoding utf-8
260
261
set out [open ${file} .new w]
261
262
fconfigure $out -translation lf -encoding utf-8
262
263
@@ -1100,7 +1101,7 @@ proc genStubs::emitInit {name textVar} {
1100
1101
}
1101
1102
foreach intf [array names interfaces] {
1102
1103
if {[info exists hooks($intf )]} {
1103
- if {[ lsearch -exact $hooks($intf) $name ] >= 0 } {
1104
+ if {$name in $hooks($intf) } {
1104
1105
set root 0
1105
1106
break
1106
1107
}
@@ -1191,7 +1192,7 @@ proc genStubs::init {} {
1191
1192
set outDir [lindex $argv 0]
1192
1193
1193
1194
foreach file [lrange $argv 1 end] {
1194
- source $file
1195
+ source -encoding utf-8 $file
1195
1196
}
1196
1197
1197
1198
foreach name [lsort [array names interfaces]] {
You can’t perform that action at this time.
0 commit comments