Merge branch 'marynate-PR-global-local-crash'

This commit is contained in:
Wojtek Figat
2021-08-07 16:52:48 +02:00

View File

@@ -189,7 +189,12 @@ void LocalizationService::OnLocalizationChanged()
localeName[currentCulture.Length() + 5] = '8';
localeName[currentCulture.Length() + 6] = 0;
}
std::locale::global(std::locale(localeName));
try
{
std::locale::global(std::locale(localeName));
}
catch (std::runtime_error const&) {}
catch (...) {}
}
#endif