g-key-file-error-quark occures rather often and freezes RT, Issue 807

This commit is contained in:
Ingo
2015-05-25 19:55:59 +02:00
parent d678063484
commit 3ce4191789
6 changed files with 9 additions and 5 deletions

View File

@@ -140,6 +140,7 @@ Glib::ustring MultiLangMgr::getOSUserLanguage() {
#elif defined(__linux__) || defined(__APPLE__)
char *tmplocale;
tmplocale = setlocale(LC_CTYPE,"");
setlocale(LC_NUMERIC, "C"); // to set decimal point to "."
if(tmplocale)
langName = TranslateRFC2Language(tmplocale);
#endif