summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2015-10-23 22:44:31 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2015-10-23 22:44:31 (GMT)
commitfa55d6d012bbf4fb7847db0a29710fa0bcd15d5c (patch)
tree53e0ed6f1bf22b896d797015c75e85d66c1700b8 /library
parent31aafac92405d7c54cdb4615d1eed6dd9362c4f9 (diff)
parent357ca2067d11e6a7520d106c5b06158caeecdf5b (diff)
downloadtcl-fa55d6d012bbf4fb7847db0a29710fa0bcd15d5c.zip
tcl-fa55d6d012bbf4fb7847db0a29710fa0bcd15d5c.tar.gz
tcl-fa55d6d012bbf4fb7847db0a29710fa0bcd15d5c.tar.bz2
Mend problems with [platform::identify] formatting.
Diffstat (limited to 'library')
-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 {