summaryrefslogtreecommitdiffstats
path: root/library/auto.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-02-06 14:57:27 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-02-06 14:57:27 (GMT)
commitfc6dd58f98cfa245f699aed0182472a28be9c538 (patch)
tree72dde0913e01c1b495db1ad2b80b70152d0c7d45 /library/auto.tcl
parent1d283a9126a5736f9715f14f100d9d13febc649a (diff)
downloadtcl-fc6dd58f98cfa245f699aed0182472a28be9c538.zip
tcl-fc6dd58f98cfa245f699aed0182472a28be9c538.tar.gz
tcl-fc6dd58f98cfa245f699aed0182472a28be9c538.tar.bz2
\032 -> \x1A, since hex reads better than octal
Diffstat (limited to 'library/auto.tcl')
-rw-r--r--library/auto.tcl14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/auto.tcl b/library/auto.tcl
index f998b45..f293a38 100644
--- a/library/auto.tcl
+++ b/library/auto.tcl
@@ -140,13 +140,13 @@ proc tcl_findLibrary {basename version patch initScript enVarName varName} {
# source everything when in a safe interpreter because we have a
# source command, but no file exists command
- if {[interp issafe] || [file exists $file]} {
- if {![catch {uplevel #0 [list source $file]} msg opts]} {
- return
- }
+ if {[interp issafe] || [file exists $file]} {
+ if {![catch {uplevel #0 [list source $file]} msg opts]} {
+ return
+ }
append errors "$file: $msg\n"
append errors [dict get $opts -errorinfo]\n
- }
+ }
}
unset -nocomplain the_library
set msg "Can't find a usable $initScript in the following directories: \n"
@@ -240,7 +240,7 @@ proc auto_mkindex_old {dir args} {
set f ""
set error [catch {
set f [open $file]
- fconfigure $f -eofchar "\032 {}"
+ fconfigure $f -eofchar "\x1A {}"
while {[gets $f line] >= 0} {
if {[regexp {^proc[ ]+([^ ]*)} $line match procName]} {
set procName [lindex [auto_qualify $procName "::"] 0]
@@ -351,7 +351,7 @@ proc auto_mkindex_parser::mkindex {file} {
set scriptFile $file
set fid [open $file]
- fconfigure $fid -eofchar "\032 {}"
+ fconfigure $fid -eofchar "\x1A {}"
set contents [read $fid]
close $fid