diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-10-28 11:18:53 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-10-28 11:18:53 (GMT) |
commit | 18fb3780723b2613640a274c1b76831ebceadfeb (patch) | |
tree | 0aae6637315656922453c773719a21ec0eee98ad /library/install.tcl | |
parent | d1e2a1ab3ccfb141e5336357b90666f94789c20d (diff) | |
download | tcl-18fb3780723b2613640a274c1b76831ebceadfeb.zip tcl-18fb3780723b2613640a274c1b76831ebceadfeb.tar.gz tcl-18fb3780723b2613640a274c1b76831ebceadfeb.tar.bz2 |
TIP #646 correction: let "fconfigure $chan -eofchar" return a single character, not a list element
Diffstat (limited to 'library/install.tcl')
-rw-r--r-- | library/install.tcl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/install.tcl b/library/install.tcl index 50e40df..4abdead 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 -encoding utf-8 -eofchar "\x1A {}" + fconfigure $fin -encoding utf-8 -eofchar \x1A 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 -encoding utf-8 -eofchar "\x1A {}" + fconfigure $fin -encoding utf-8 -eofchar \x1A 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 -encoding utf-8 -eofchar "\x1A {}" + fconfigure $fin -encoding utf-8 -eofchar \x1A set dat [read $fin] close $fin set trace 0 |