I recently discovered that WMi is localized. This means that my WQL queries and returned results are sometimes incorrect because of commas/dots in numbers. Since there are many users with German/French/Japanese windows, this must be a problem encountered quite often.
How can I communicate with WMI without needing a special case for every language mutation of Windows?
Update: Based on RRUZ's answer and a couple aricles I found online, it appears that the localized information is stored in a child namespace containing a localization identifier. There are two thing which are still unclear to me.
- It appears that the basic class on French Windows already returns numbers with decimal commas intead of dots. Does that mean that the default locale used is always the one of the system?
- The behavior described in the previous question makes me wonder where are the numbers converted from one system to another? Could it be happening in the framework itself?
- Is there a common locale which is present on all Windows instances? From what I've read, it seems that I cannot just expect to request any locale and get localized results.