On *nix systems you can do locale -a
to get a list of available locales.
What is the equivalent command (or action) in Windows?
I've seen lists on the Internet, but most of them are of just locale labels and not actual locale names. Plus, not all systems are guaranteed to have all of them installed, right?
Note that my definition of "locale" here is "locale string", i.e. a second parameter to C's setlocale()
which will result in a non-NULL return value.
Programmatic answers are also fine, I'm just tired of brute force guessing Windows locale names.
This page seems to contain links to lists of language and country/region that the WIN32 setlocale recognizes. However:
fail.