summaryrefslogtreecommitdiffstats
path: root/library/install.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-03 14:39:19 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-03 14:39:19 (GMT)
commitc30f3e95690c1fa32296fb55213cb7f03ac14345 (patch)
treec0408e038d57d98337a74e64296d142d190b8dd9 /library/install.tcl
parentf23698ae342e74bcedb17f24cde0f80106e14ea7 (diff)
parentc99f35416608c70d8e277b38405429a50b64bd84 (diff)
downloadtcl-c30f3e95690c1fa32296fb55213cb7f03ac14345.zip
tcl-c30f3e95690c1fa32296fb55213cb7f03ac14345.tar.gz
tcl-c30f3e95690c1fa32296fb55213cb7f03ac14345.tar.bz2
Merge 8.6
Diffstat (limited to 'library/install.tcl')
-rw-r--r--library/install.tcl10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/install.tcl b/library/install.tcl
index 26e5e68..2c5afa7 100644
--- a/library/install.tcl
+++ b/library/install.tcl
@@ -35,7 +35,7 @@ proc ::practcl::_pkgindex_directory {path} {
# Read the file, and override assumptions as needed
###
set fin [open $file r]
- fconfigure $fin -eofchar \032
+ fconfigure $fin -encoding utf-8 -eofchar \032
set dat [read $fin]
close $fin
# Look for a teapot style Package statement
@@ -59,7 +59,7 @@ proc ::practcl::_pkgindex_directory {path} {
foreach file [glob -nocomplain $path/*.tcl] {
if { [file tail $file] == "version_info.tcl" } continue
set fin [open $file r]
- fconfigure $fin -eofchar \032
+ fconfigure $fin -encoding utf-8 -eofchar \032
set dat [read $fin]
close $fin
if {![regexp "package provide" $dat]} continue
@@ -79,7 +79,7 @@ proc ::practcl::_pkgindex_directory {path} {
return $buffer
}
set fin [open $pkgidxfile r]
- fconfigure $fin -eofchar \032
+ fconfigure $fin -encoding utf-8 -eofchar \032
set dat [read $fin]
close $fin
set trace 0
@@ -202,7 +202,7 @@ proc ::practcl::installDir {d1 d2} {
} elseif {[file isfile $f]} {
file copy -force $f [file join $d2 $ftail]
if {$::tcl_platform(platform) eq {unix}} {
- file attributes [file join $d2 $ftail] -permissions 0644
+ file attributes [file join $d2 $ftail] -permissions 0o644
} else {
file attributes [file join $d2 $ftail] -readonly 1
}
@@ -210,7 +210,7 @@ proc ::practcl::installDir {d1 d2} {
}
if {$::tcl_platform(platform) eq {unix}} {
- file attributes $d2 -permissions 0755
+ file attributes $d2 -permissions 0o755
} else {
file attributes $d2 -readonly 1
}