Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 76c8e2338c886345dc18f7c70ee1e6a132aaa6dd0b71f278c1452bf0cc60e819
Ticket: 0f19edcb7822984c583e70d07ddc169b0b19dcb7
Windows 11 not reported in tcl_platform(osVersion)
User & Date: fvogel on 2023-01-02 21:43:57
Changes

  1. icomment:
    Running 'ver' on the command line in my Win 11 box says:
    
    Microsoft Windows [version 10.0.22621.963]
    
    Apparently one is supposed to use the build number in the OSVERSIONINFOW struct to make the difference between Win 10 and Win 11. If the build number is >=22000 then it is a Win 11 box. See [https://stackoverflow.com/questions/69373447/is-there-an-official-way-to-detect-windows-11|this StackOverflow thread].
    
    The TclpSetVariables() code in tclWinInit.c should probably be updated to take this into account.
    
  2. login: "fvogel"
  3. mimetype: "text/x-fossil-wiki"