summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-28 14:46:50 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-28 14:46:50 (GMT)
commite3f7327e2c0c6dea8d2556d819875495e16c1cb6 (patch)
tree5a6c61eba61367946efeef0e7c775c1be57c1e9b /tools
parenta9a000da15948de83914a053e89484da4a9251bf (diff)
downloadtcl-e3f7327e2c0c6dea8d2556d819875495e16c1cb6.zip
tcl-e3f7327e2c0c6dea8d2556d819875495e16c1cb6.tar.gz
tcl-e3f7327e2c0c6dea8d2556d819875495e16c1cb6.tar.bz2
TIP #587 follow-up: Looks like -encoding utf-8 still was missing in some places, only visible on Windows
Diffstat (limited to 'tools')
-rw-r--r--tools/genStubs.tcl2
-rwxr-xr-xtools/tclZIC.tcl4
-rw-r--r--tools/uniParse.tcl2
3 files changed, 4 insertions, 4 deletions
diff --git a/tools/genStubs.tcl b/tools/genStubs.tcl
index bc0d700..3f4632d 100644
--- a/tools/genStubs.tcl
+++ b/tools/genStubs.tcl
@@ -258,7 +258,7 @@ proc genStubs::rewriteFile {file text} {
}
set in [open ${file} r]
set out [open ${file}.new w]
- fconfigure $out -translation lf
+ fconfigure $out -translation lf -encoding utf-8
while {![eof $in]} {
set line [gets $in]
diff --git a/tools/tclZIC.tcl b/tools/tclZIC.tcl
index 52b86ea..901814f 100755
--- a/tools/tclZIC.tcl
+++ b/tools/tclZIC.tcl
@@ -1263,7 +1263,7 @@ proc writeZones {outDir} {
# Write the data to the information file
set f [open $fileName w]
- fconfigure $f -translation lf
+ fconfigure $f -translation lf -encoding utf-8
puts $f "\# created by $::argv0 - do not edit"
puts $f ""
puts $f [list set TZData(:$zoneName) $data]
@@ -1316,7 +1316,7 @@ proc writeLinks {outDir} {
# Write the file
set f [open $fileName w]
- fconfigure $f -translation lf
+ fconfigure $f -translation lf -encoding utf-8
puts $f "\# created by $::argv0 - do not edit"
puts $f $ifCmd
puts $f $setCmd
diff --git a/tools/uniParse.tcl b/tools/uniParse.tcl
index 90d249a..aec5864 100644
--- a/tools/uniParse.tcl
+++ b/tools/uniParse.tcl
@@ -177,7 +177,7 @@ proc uni::main {} {
puts "shift = $shift, space = $size"
set f [open [file join [lindex $argv 1] tclUniData.c] w]
- fconfigure $f -translation lf
+ fconfigure $f -translation lf -encoding utf-8
puts $f "/*
* tclUniData.c --
*