correctly initialize C++ locale as well as C locale

This commit is contained in:
Paul Davis 2016-07-14 11:36:40 -04:00
parent 58657edfb3
commit 521fe586d7

View file

@ -296,7 +296,9 @@ int main (int argc, char *argv[])
#endif
#ifdef ENABLE_NLS
/* initialize C and C++ locales to user preference */
setlocale (LC_ALL, "");
std::locale::global (std::locale (setlocale (LC_ALL, 0)));
#endif
console_madness_begin();