diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-02-06 14:49:29 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-02-06 14:49:29 (GMT) |
commit | 718545fc5910b2e24e810043be5f94a05dd831e0 (patch) | |
tree | eb1b319efa47848972592cdf501e0c5cb1cbbed2 /library | |
parent | e3585eb1e74004665d0679e9c01e7ae480e87788 (diff) | |
download | tcl-718545fc5910b2e24e810043be5f94a05dd831e0.zip tcl-718545fc5910b2e24e810043be5f94a05dd831e0.tar.gz tcl-718545fc5910b2e24e810043be5f94a05dd831e0.tar.bz2 |
\032 -> \x1A, since hex reads better than octal
Diffstat (limited to 'library')
-rw-r--r-- | library/auto.tcl | 14 | ||||
-rw-r--r-- | library/init.tcl | 2 | ||||
-rw-r--r-- | library/safe.tcl | 2 |
3 files changed, 9 insertions, 9 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 diff --git a/library/init.tcl b/library/init.tcl index d2d1fa9..3200955 100644 --- a/library/init.tcl +++ b/library/init.tcl @@ -494,7 +494,7 @@ proc auto_load_index {} { continue } else { set error [catch { - fconfigure $f -eofchar "\032 {}" + fconfigure $f -eofchar "\x1A {}" set id [gets $f] if {$id eq "# Tcl autoload index file, version 2.0"} { eval [read $f] diff --git a/library/safe.tcl b/library/safe.tcl index 1eafec0..8c79abd 100644 --- a/library/safe.tcl +++ b/library/safe.tcl @@ -982,7 +982,7 @@ proc ::safe::AliasSource {child args} { set replacementMsg "script error" set code [catch { set f [open $realfile] - fconfigure $f -eofchar "\032 {}" + fconfigure $f -eofchar "\x1A {}" if {$encoding ne ""} { fconfigure $f -encoding $encoding } |