Artifacts Associated With Ticket 1914604fffffffff
Ticket change [d0dc275218] (rid 113259) by juliannoble on 2008-03-14 22:50:25:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Apache allows only letters numbers and the underscore in the names of environment variables. (see http://httpd.apache.org/docs/2.2/env.html) This means TCL8.5_TM_PATH is converted to TCL8_5_TM_PATH in an apache cgi situation for example, and so tcl::tm::list isn't adjusted accordingly. The Apache docs claim this is for 'portability reasons' so perhaps it crops up elsewhere. I got around the issue by adjusting tcl::tm::Defaults in lib/tcl8.5/tm.tcl to check for TCLX_y_TM_PATH if TCLX.h_TM_PATH doesn't exist. proc ::tcl::tm::Defaults {} { global env tcl_platform lassign [split [info tclversion] .] major minor set exe [file normalize [info nameofexecutable]] # Note that we're using [::list], not [list] because [list] means # something other than [::list] in this namespace. roots [::list \ [file dirname [info library]] \ [file join [file dirname [file dirname $exe]] lib] \ ] if {$tcl_platform(platform) eq "windows"} { set sep ";" } else { set sep ":" } for {set n $minor} {$n >= 0} {incr n -1} { set ev TCL${major}.${n}_TM_PATH if {[info exists env($ev)]} { foreach p [split $env($ev) $sep] { path add $p } } else { set ev TCL${major}_${n}_TM_PATH if {[info exists env($ev)]} { foreach p [split $env($ev) $sep] { path add $p } } } } return } - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "juliannoble"
- subsystem initialized to: "08. Environment Variables"
- title initialized to: "tm.tcl TCLX.h_TM_PATH not portable"
- type initialized to: "Bug"
Ticket change [6be9de61a2] (rid 128409) by juliannoble on 2008-03-18 19:15:18:
- title changed to: "tm.tcl TCLX.y_TM_PATH not portable"
Ticket change [d34fd42170] (rid 123271) by dkf on 2008-03-18 20:48:23:
- subsystem changed to: "39. Package Manager"
Ticket change [376e9bce94] (rid 107277) by dkf on 2008-03-18 20:48:24:
- assignee changed to: "andreas_kupries"
Ticket change [479b0cbc1b] (rid 99732) by andreas_kupries on 2008-03-19 00:44:31:
- closedate changed to: "2008-03-18T17:44:31"
- closer changed to: "andreas_kupries"
- icomment:
Logged In: YES user_id=75003 Originator: NO Accepted, with changes. Minor: Used a loop to prevent the replication of the 'path add' loop. Changed semantics a bit as well, now always accepting both forms of the environment variable. I.e. TCL_X_y_TM_PATH is accepted even if TCLX.y_TM_PATH exists too, instead of only when it doesn't exist.
- login: "andreas_kupries"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "andreas_kupries"
Ticket change [2cbf4539f2] (rid 118959) by andreas_kupries on 2008-06-17 23:46:26:
- icomment:
Logged In: YES user_id=75003 Originator: NO Updated the documentation (manpage tm.n) in both head and 8.5 branch. Prompted by duplicate [Bug 1996158], i.e. https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1996158&group_id=10894
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment: