diff options
author | Kevin B Kenny <kennykb@acm.org> | 2015-10-23 22:29:23 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2015-10-23 22:29:23 (GMT) |
commit | b40c3af17683766d1e1359c9ceb4dd7178f6afc5 (patch) | |
tree | ca3bcd68c062e43c5f214ddd658c4e690c964631 /library/platform | |
parent | 4e08431e8790a66cea86d33c8c770626396509c0 (diff) | |
download | tcl-b40c3af17683766d1e1359c9ceb4dd7178f6afc5.zip tcl-b40c3af17683766d1e1359c9ceb4dd7178f6afc5.tar.gz tcl-b40c3af17683766d1e1359c9ceb4dd7178f6afc5.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.tcl | 2 |
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 { |