summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--library/tm.tcl2
-rw-r--r--tests/tm.test4
3 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index b27c0c3..cc28ed4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-08-29 Andreas Kupries <andreask@activestate.com>
+
+ * library/tm.tcl (::tcl::tm::roots): Accepted Don Porter's patch
+ for [Tcl SF Bug 1189657]. Syncs the implementation to the
+ specification (TIP #189).
+
2005-08-29 Kevin Kenny <kennykb@acm.org>
* generic/tclBasic.c (ExprMathFunc): Restored "round away from
diff --git a/library/tm.tcl b/library/tm.tcl
index 5c05e27..2830ea6 100644
--- a/library/tm.tcl
+++ b/library/tm.tcl
@@ -353,7 +353,7 @@ proc ::tcl::tm::roots {paths} {
for {set n $minor} {$n >= 0} {incr n -1} {
path add [file normalize [file join $p ${major}.${n}]]
}
- path add [file normalize [file join $pa site-tcl]]
+ path add [file normalize [file join $p site-tcl]]
}
return
}
diff --git a/tests/tm.test b/tests/tm.test
index 9f5a83a..3484747 100644
--- a/tests/tm.test
+++ b/tests/tm.test
@@ -6,7 +6,7 @@
# Copyright (c) 2004 by Donal K. Fellows.
# All rights reserved.
#
-# RCS: @(#) $Id: tm.test,v 1.5 2004/11/05 09:21:46 dkf Exp $
+# RCS: @(#) $Id: tm.test,v 1.6 2005/08/29 21:55:27 andreas_kupries Exp $
package require Tcl 8.5
if {"::tcltest" ni [namespace children]} {
@@ -204,8 +204,8 @@ proc genpaths {base} {
set base [file normalize $base]
foreach {major minor} [split [info tclversion] .] break
set results {}
- lappend results [file join $base site-tcl]
set base [file join $base tcl$major]
+ lappend results [file join $base site-tcl]
for {set i 0} {$i <= $minor} {incr i} {
lappend results [file join $base ${major}.$i]
}