Menu

#327 is_user_SYSTEM works only on English version of Windows

open
nobody
None
5
2012-11-14
2012-11-14
No

The "is_user_SYSTEM" method compares (case sensitive) the result of GetUserName to "SYSTEM". Problem is that GetUserName returns a localized version of the user name (at least on W7). For example on a french version of W7 ther returned name is "Système" so the test fails.

Discussion


Log in to post a comment.