Catch potential runtime error from locale::global
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user