Tcl Source Code

Artifact [816421b8bf]
Login

Artifact 816421b8bf50b7064e8a2520b1513c40df1c7c04:

Ticket change [816421b8bf] - New ticket [651e828a52] Wrong Windows version reported for Windows 8.1. by apnadkarni 2014-01-30 15:55:18.
D 2014-01-30T15:55:18.807
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment On\sWindows\s8.1,\stcl_platform(osVersion)\sis\sreported\sas\s6.2\seven\sthough\sit\sis\sactually\s6.3.\sThis\sis\sdue\sto\sa\schange\sin\sbehaviour\sof\sthe\sGetVersionEx\sWin32\sAPI\swhich\sreports\s6.2\sif\sthe\sexe\sdoes\snot\scontain\sa\smanifest.\r\n\r\nJan\shas\sfixed\sthis\sin\sthe\strunk\sby\sadding\sthe\sappropriate\smanifest.\sHowever,\sthis\sis\snot\sa\spermanent\sfix.\sWhen\sWindows\s8.2\s(or\swhatever)\srolls\saround,\sthe\smanifest\swill\shave\sto\schange\sAGAIN\sand\sexisting\stclsh\swould\sstill\sbe\sbroken.\r\n\r\nMoreover,\sthe\smanifest\sfix\sonly\sfixes\stclsh\sand\swish,\snot\swhen\sthe\stcl\sdll\sis\sloaded\sfrom\sother\sexecutables.\r\n\r\nTherefore,\sa\sbetter\sfix\smight\sbe\sto\suse\sthe\sundocumented\sRtlGetVersion\sfunction\swhich\sreturns\sthe\sreal\sOS\sversion.\sIt\shas\sthe\ssame\sinterface\sas\sGetVersionEx\s(the\sreturned\sstruct\sis\sthe\ssame\sthough\stypedef'ed\sdifferently),\sbut\shas\sto\sbe\sloaded\sdynamically\sfrom\sntdll.dll.\sThis\swill\spermanently\ssolve\sthe\sproblem\sfor\sfuture\sversions\sand\sall\sexecutables\sthat\sload\sthe\stcl\sdll\s(unless\sMicrosoft\sbreaks\sthat\sfunction\sin\sthe\sfuture\sas\swell).\r\n\r\nSee\shttp://wixtoolset.org/issues/4061/\sand\shttp://msdn.microsoft.com/en-us/library/windows/hardware/ff561910(v=vs.85).aspx
J foundin 8.6.1
J is_private 0
J login apnadkarni
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter apnadkarni
J subsystem 69.\sOther
J title Wrong\sWindows\sversion\sreported\sfor\sWindows\s8.1
J type Bug
K 651e828a525828c89dc2a77bb5ac260fd0a39e25
U apnadkarni
Z 02dbc6c919ccd58a70b8fb90a44028ed