Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2015-09-30
13:45
Mutch simpler solution to [219866c1e9]: In stead of filtering out version information from the strin... check-in: c11c32ad31 user: jan.nijtmans tags: trunk
13:44
Mutch simpler solution to [219866c1e9]: In stead of filtering out version information from the strin... check-in: aee5640971 user: jan.nijtmans tags: core-8-5-branch
2015-09-29
08:13 • Closed ticket [219866c1e9]: platform::identify: regexp doesn't match platfor... artifact: 85ccb8015b user: jan.nijtmans
07:48
Fix [219866c1e9]: platform::identify: regexp doesn't match platform -> platform 1.0.14 check-in: c2355bf4d3 user: jan.nijtmans tags: trunk
07:46
Fix [219866c1e9]: platform::identify: regexp doesn't match platform -> platform 1.0.14 check-in: 8270a202f9 user: jan.nijtmans tags: core-8-5-branch
2015-09-25
10:46 • Pending ticket [219866c1e9]: platform::identify: regexp doesn't match platfo... artifact: 2b570993bf user: jan.nijtmans
10:39
proposed fix for [219866c1e9]: platform::identify: regexp doesn't match platform closed check-in: 616b458e31 user: jan.nijtmans tags: bug-219866c1e9
08:22 • Ticket [219866c1e9] platform::identify: regexp doesn't match platform st... artifact: 87cc576739 user: jan.nijtmans
06:40 • New ticket [219866c1e9]. artifact: fc073e9570 user: pooryorick

platform::identify: regexp doesn't match platform

Closed / Fixed219866c1e9d1e5cb77347d2ea187b4ce60cea519Created 11 years agoUpdated 11 years ago
Descriptionplain2015-09-25 06:40:20
platform-1.0.13.tm/::platform::identify contains the following line:

	regexp {^([^-]+)-([^-]+)$} $id -> plat cpu

, which fails to match the following platform name:

	cygwin_nt-6.3-x86_64

One fix is to remove the end-of-line anchor:

	regexp {^([^-]+)-([^-]+)} $id -> plat cpu
Referenced by5
  • c11c32ad31Mutch simpler solution to [219866c1e9]: In stead of filtering out version information from the string, make sure that ::platform::generic doesn't contain this version information in the first place. check-in2015-09-30 13:45:54
  • aee5640971Mutch simpler solution to [219866c1e9]: In stead of filtering out version information from the string, make sure that ::platform::generic doesn't contain this version information in the first place. check-in2015-09-30 13:44:52
  • c2355bf4d3Fix [219866c1e9]: platform::identify: regexp doesn't match platform -> platform 1.0.14 check-in2015-09-29 07:48:58
  • 8270a202f9Fix [219866c1e9]: platform::identify: regexp doesn't match platform -> platform 1.0.14 check-in2015-09-29 07:46:08
  • 616b458e31proposed fix for [219866c1e9]: platform::identify: regexp doesn't match platform check-in2015-09-25 10:39:39
jan.nijtmansplain2015-09-25 08:22:14
I'll have a look. Removing the end-of-line anchor is not correct, because that would lead to "cygwin_nt" for "plat" and "6.3" for the "cpu"
jan.nijtmanswiki2015-09-25 10:46:38

Proposed fix in [616b458e3166d3aa] (for core-8-5-branch, to be merged up to trunk). Andreas, can you live with that?

Explanation: The official Cygwin build of Tcl can have up to 3 dashes, dividing the string in 4 parts. The second part is the OS version (6.x), the 3th part can be "wow" (indicating a 32-bit Tcl running on a 64-bit OS). Those middle parts take no role in the compatibility, so they just can be ignored.

When Tcl is built from the unchanged sources, tcl_platform(os) is "Windows NT", then tcl_platform(platform) being "unix" tells us that we are really on Cygwin.

jan.nijtmansplain2015-09-29 08:13:19
Fixed in core-8-5-branch and trunk. Will be in Tcl 8.5.19 and Tcl 8.6.5.
Log in (anonymous is fine) to add a comment.