C/C++ locales are a trashfire. The path to enlightenment is to not use them and discard all libraries which think they can get away with calling setlocale (which a few do, but is more or less a given when we're talking about GUIs).
> obviously you should not use sprintf, you should use C++ iostreams
> obviously you should not use sprintf, you should use C++ iostreams
Friends don't let friends use iostreams.