Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS.get_version() does not return 11 as the major version on Windows 11 #103085

Closed
lostminds opened this issue Feb 20, 2025 · 1 comment
Closed
Labels

Comments

@lostminds
Copy link

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 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().

@Calinou
Copy link
Member

Calinou commented Feb 20, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants