Skip to content
Tcl Source Code History Of Ticket 1914604fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1914604fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1914604fffffffffffffffffffffffffffffffff

  1. Ticket change [d0dc275218] (rid 113259) by juliannoble on 2008-03-14 22:50:25:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. 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
      }
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "juliannoble"
    10. subsystem initialized to: "08. Environment Variables"
    11. title initialized to: "tm.tcl TCLX.h_TM_PATH not portable"
    12. type initialized to: "Bug"
  2. Ticket change [6be9de61a2] (rid 128409) by juliannoble on 2008-03-18 19:15:18:

    1. title changed to: "tm.tcl TCLX.y_TM_PATH not portable"
  3. Ticket change [d34fd42170] (rid 123271) by dkf on 2008-03-18 20:48:23:

    1. subsystem changed to: "39. Package Manager"
  4. Ticket change [376e9bce94] (rid 107277) by dkf on 2008-03-18 20:48:24:

    1. assignee changed to: "andreas_kupries"
  5. Ticket change [479b0cbc1b] (rid 99732) by andreas_kupries on 2008-03-19 00:44:31:

    1. closedate changed to: "2008-03-18T17:44:31"
    2. closer changed to: "andreas_kupries"
    3. 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.
      
      
      
    4. login: "andreas_kupries"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "andreas_kupries"
  6. Ticket change [2cbf4539f2] (rid 118959) by andreas_kupries on 2008-06-17 23:46:26:

    1. 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
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"