summaryrefslogtreecommitdiffstats
path: root/library/platform
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2015-10-23 22:29:23 (GMT)
committerKevin B Kenny <kennykb@acm.org>2015-10-23 22:29:23 (GMT)
commit4028edd571097abbb13775d2f49514368484cd73 (patch)
treeca3bcd68c062e43c5f214ddd658c4e690c964631 /library/platform
parent7640d1e89870823d479a0d11a07c197995643143 (diff)
downloadtcl-4028edd571097abbb13775d2f49514368484cd73.zip
tcl-4028edd571097abbb13775d2f49514368484cd73.tar.gz
tcl-4028edd571097abbb13775d2f49514368484cd73.tar.bz2
Correct bad regexp in platform::identify that causes it to return incorrect results everywhere.
Diffstat (limited to 'library/platform')
-rw-r--r--library/platform/platform.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/platform/platform.tcl b/library/platform/platform.tcl
index c596e60..0160184 100644
--- a/library/platform/platform.tcl
+++ b/library/platform/platform.tcl
@@ -165,7 +165,7 @@ proc ::platform::identify {} {
global tcl_platform
set id [generic]
- regexp {^([^-]+)-([^-]+)$} $id -> plat ver wow cpu
+ regexp {^([^-]+)(-[0-9\.]+)?(-wow)?-([^-]+)$} $id -> plat ver wow cpu
switch -- $plat {
solaris {