Corrected formatting

This commit is contained in:
David Puglielli 2019-05-13 11:14:53 -07:00
parent 06ff53daa8
commit 1aa8dea2ae

View file

@ -285,18 +285,16 @@ SystemLocale::SystemLocale( const char * localeName )
{ {
const char* DEFAULT_LOCALE = "en_US.UTF-8"; const char* DEFAULT_LOCALE = "en_US.UTF-8";
try try {
{
m_pLocale = new std::locale(localeName); m_pLocale = new std::locale(localeName);
} }
catch(const std::exception& e) catch(const std::exception& e) {
{
localeName = DEFAULT_LOCALE; localeName = DEFAULT_LOCALE;
} }
if(!m_pLocale) if(!m_pLocale) {
m_pLocale = new std::locale(localeName); m_pLocale = new std::locale(localeName);
}
// Mapping from locale charset to codepage // Mapping from locale charset to codepage
struct LocaleCP struct LocaleCP