Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#327 is_user_SYSTEM works only on English version of Windows

open
nobody
None
5
2012-11-14
2012-11-14
Joel Harhellier
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