More robustness for getting os version on Windows#159
More robustness for getting os version on Windows#159Joouis wants to merge 3 commits intoatom:masterfrom Joouis:master
Conversation
|
Why AppVeyor build failed 😥 I just change a regex statement, and in ENV ATOM_CHANNEL=stable passed but in beta failed?😵😵😵 |
|
I think we might be better off just using |
|
Calling |
|
@Ben3eeE You are right, calling |
|
As the primary Windows guy I've not once found |
|
If we keep using I like |
Description of the Change
On Windows OS, if the system language is not English, type
systeminfoin CMD would get "OS" with native chars instead of "OS Name". Change the regex statement to match "OS" with "Microsoft", so thatwinVersionTextfunction can return useful version info on non-English system as well as English system.Alternate Designs
None.
Benefits
Get useful system version on non-English Windows OS instead of "Unknown Windows version".
Possible Drawbacks
None.
Applicable Issues
None.