chris@xxxxxxxxxxxxxxxxxxxx wrote: > 1) Was the list of locale LC_ variables something you would have expected? > 2) Is there something else I should be constructing the locale with to give the native locale on Linux? > 3) Is it possible to get the correct native locale on Windows with gcc (rather than C - the same results if I build and run the program in MSYS or the Windows Command Prompt)? Any answer to question 2 may answer this, I guess. Mingw is only reporting what the locale is set to in the environment, which in this case means that you don't have the environment variable LANG or LC_ALL (or any of the other LC_*) set. On linux it is very likely that these are initialized for you in one of the stock profile/rc files, but there is no such thing in the default mingw/MSYS rc files, so you should add this if you want that behavior. It is not the job of the STL or the compiler to set these variables, merely to act on how they are set by the user, or in the case of them not being set to use the default "C" locale. I think the question you're really asking is, "Is there any mechanism for the locale as set in Windows to be reflected in the environment variables LANG/LC_*?" and I think the answer to that is no, they work differently and need to be set independantly. But I could be wrong. Brian