Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 57369
Collapse All | Expand All

(-)src/I18n.cc.orig (-1 / +3 lines)
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;

Return to bug 57369