Fix Web (and consoles) to run without exceptions throw/catch support
This commit is contained in:
@@ -262,6 +262,7 @@ void LocalizationService::OnLocalizationChanged()
|
||||
localeName[currentCulture.Length() + 5] = '8';
|
||||
localeName[currentCulture.Length() + 6] = 0;
|
||||
}
|
||||
#if HAS_EXCEPTIONS
|
||||
try
|
||||
{
|
||||
std::locale::global(std::locale(localeName));
|
||||
@@ -272,6 +273,9 @@ void LocalizationService::OnLocalizationChanged()
|
||||
catch (...)
|
||||
{
|
||||
}
|
||||
#else
|
||||
std::locale::global(std::locale(localeName));
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user