Lines 54-60
Link Here
|
54 |
I18n::I18n():m_multibyte(false), m_catalog_fd((nl_catd)(-1)) { |
54 |
I18n::I18n():m_multibyte(false), m_catalog_fd((nl_catd)(-1)) { |
55 |
#ifdef HAVE_SETLOCALE |
55 |
#ifdef HAVE_SETLOCALE |
56 |
//make sure we don't get 0 to m_locale string |
56 |
//make sure we don't get 0 to m_locale string |
57 |
char *temp = setlocale(LC_ALL, ""); |
57 |
char *temp; |
|
|
58 |
(void)setlocale(LC_ALL, ""); |
59 |
temp = setlocale(LC_MESSAGES, NULL); |
58 |
m_locale = ( temp ? temp : ""); |
60 |
m_locale = ( temp ? temp : ""); |
59 |
if (m_locale.empty()) { |
61 |
if (m_locale.empty()) { |
60 |
cerr<<"Warning: Failed to set locale, reverting to \"C\""<<endl; |
62 |
cerr<<"Warning: Failed to set locale, reverting to \"C\""<<endl; |