summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-01-06 17:33:59 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-01-06 17:33:59 (GMT)
commitba6fe47daab7593fc0e2d80184a15c791e73dcf7 (patch)
treeae25c963f50994005c291536ab2193e02fd555b0 /unix
parent507af3b425099da840b4f48b868dbf3cd33ed7b6 (diff)
parentcf560b3fb9c317bb0e6a6d458d5467aae8fc6a79 (diff)
downloadtcl-ba6fe47daab7593fc0e2d80184a15c791e73dcf7.zip
tcl-ba6fe47daab7593fc0e2d80184a15c791e73dcf7.tar.gz
tcl-ba6fe47daab7593fc0e2d80184a15c791e73dcf7.tar.bz2
Merge 8.6
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixInit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/tclUnixInit.c b/unix/tclUnixInit.c
index 1252043..7396258 100644
--- a/unix/tclUnixInit.c
+++ b/unix/tclUnixInit.c
@@ -886,6 +886,9 @@ TclpSetVariables(
GetSystemInfo(&sysInfo);
+ if (osInfo.dwMajorVersion == 10 && osInfo.dwBuildNumber >= 22000) {
+ osInfo.dwMajorVersion = 11;
+ }
Tcl_SetVar2(interp, "tcl_platform", "os", "Windows NT", TCL_GLOBAL_ONLY);
sprintf(buffer, "%d.%d", osInfo.dwMajorVersion, osInfo.dwMinorVersion);
Tcl_SetVar2(interp, "tcl_platform", "osVersion", buffer, TCL_GLOBAL_ONLY);