mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-30 12:44:01 -06:00
b4fedff90e
We can't use std::locale::global because all streams imbue it by default and if it's not 'C' (aka std::locale::classic) then we must imbue all the streams that we don't want localized, and that's most of them. Provides error checking for setting the C++ locale from the environment. This is necessary both because the environment might have an invalid locale, which would cause an unhandled exception crash. On windows std::locale("") can't handle some Microsoft-style locale strings (e.g. Spanish_Spain) so we use boost::locale's gen("") function to set the locale--though even that can't handle a Microsoft-style locale string with an appended charset (e.g. Spanish_Spain.1252) and that's what glibc's setlocale(LC_ALL, NULL) emits. |
||
---|---|---|
.. | ||
test | ||
binreloc.c | ||
binreloc.h | ||
CMakeLists.txt | ||
core-utils.i | ||
core-utils.scm | ||
gnc-environment.c | ||
gnc-environment.h | ||
gnc-filepath-utils.cpp | ||
gnc-filepath-utils.h | ||
gnc-gkeyfile-utils.c | ||
gnc-gkeyfile-utils.h | ||
gnc-glib-utils.c | ||
gnc-glib-utils.h | ||
gnc-guile-utils.c | ||
gnc-guile-utils.h | ||
gnc-jalali.c | ||
gnc-jalali.h | ||
gnc-locale-utils.c | ||
gnc-locale-utils.cpp | ||
gnc-locale-utils.h | ||
gnc-locale-utils.hpp | ||
gnc-path.c | ||
gnc-path.h | ||
gnc-prefs-p.h | ||
gnc-prefs.c | ||
gnc-prefs.h | ||
gncla-dir.h.in |