You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The OS.get_version() docs state that on Windows and (macOS and others) "the major and minor version are returned, as well as the build number".
However, on Windows the version information seems to be takes from the service/feature pack versions, which in turn don't seem to follow the marketing Windows major version 11 on Windows 11, and still starts with 10 like on Windows 10.
So on an updated Windows 11 computer OS.get_version() still returns "10.0.26100" while on an up to date Windows 10 installation, this returns the very similar "10.0.19045". While the minor version seems unused on Windows for some reason, and will always be 0, I'd expect at least the major version to reflect the marketing version used by the OS. That it does not might be confusing for users and makes it harder to quickly see what Windows version a user is using in bug reports etc.
Steps to reproduce
print OS.get_version() on a Windows 11 machine
Minimal reproduction project (MRP)
You can use Copy system information in the Help menu in the editor to get the OS version as reported by OS.get_version().
The text was updated successfully, but these errors were encountered:
This is done by design to reflect the actual version number returned by Windows. To get the "marketing" version number, use OS.get_version_alias() which was added in 4.4.beta: #100372
Tested versions
Reproducible in 4.3
System information
Windows 11
Issue description
The OS.get_version() docs state that on Windows and (macOS and others) "the major and minor version are returned, as well as the build number".
However, on Windows the version information seems to be takes from the service/feature pack versions, which in turn don't seem to follow the marketing Windows major version 11 on Windows 11, and still starts with 10 like on Windows 10.
So on an updated Windows 11 computer OS.get_version() still returns "10.0.26100" while on an up to date Windows 10 installation, this returns the very similar "10.0.19045". While the minor version seems unused on Windows for some reason, and will always be 0, I'd expect at least the major version to reflect the marketing version used by the OS. That it does not might be confusing for users and makes it harder to quickly see what Windows version a user is using in bug reports etc.
Steps to reproduce
print OS.get_version()
on a Windows 11 machineMinimal reproduction project (MRP)
You can use Copy system information in the Help menu in the editor to get the OS version as reported by OS.get_version().
The text was updated successfully, but these errors were encountered: