I'm building the Windows version of a cross-platform app. It was originally written for gcc (i.e. mingw, on Windows) but in my case I'm building with MSVC. One of the source modules has this line:-
The above line crashes if I build with MSVC. I guess that's not surprising because MSVC doesn't have any support for LC_MESSAGES.
But... what is it that doesn't support LC_MESSAGES? Is it MSVC - or does Windows itself not support LC_MESSAGES? I'm only asking because the same code built with mingw doesn't crash. Is that a happy accident? Or does mingw somehow manage to support this on Windows when MSVC can't??
Code:
setlocale (LC_MESSAGES, NULL);
But... what is it that doesn't support LC_MESSAGES? Is it MSVC - or does Windows itself not support LC_MESSAGES? I'm only asking because the same code built with mingw doesn't crash. Is that a happy accident? Or does mingw somehow manage to support this on Windows when MSVC can't??