diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-01-15 14:58:03 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-01-15 14:58:03 (GMT) |
commit | dbd3f823aa0643083cc896c944c8188782f84153 (patch) | |
tree | 7eb7ca1d7fa306a509316de4d2989c2459716c15 /library/install.tcl | |
parent | 78d6e8f34ca33491a8ae054c025f3c8925737e32 (diff) | |
download | tcl-dbd3f823aa0643083cc896c944c8188782f84153.zip tcl-dbd3f823aa0643083cc896c944c8188782f84153.tar.gz tcl-dbd3f823aa0643083cc896c944c8188782f84153.tar.bz2 |
Bugfix for TIP #587 implementation: Always use -eofchar "\032 {}" and _NOT_ -eofchar \032, otherwise there's the risk that ^Z is appended too the open channel. See [5bfe3de008], we don't want to open that can of worms again!
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 2c5afa7..ce8e80b 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 \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 -encoding utf-8 -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 -encoding utf-8 -eofchar \032 + fconfigure $fin -encoding utf-8 -eofchar "\032 {}" set dat [read $fin] close $fin set trace 0 |