diff options
Diffstat (limited to 'wm/fluxbox/patches/patch-af')
-rw-r--r-- | wm/fluxbox/patches/patch-af | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wm/fluxbox/patches/patch-af b/wm/fluxbox/patches/patch-af index 82a64533468..0e9c7374a35 100644 --- a/wm/fluxbox/patches/patch-af +++ b/wm/fluxbox/patches/patch-af @@ -1,15 +1,15 @@ -$NetBSD: patch-af,v 1.3 2005/09/27 12:49:04 tonio Exp $ +$NetBSD: patch-af,v 1.4 2007/01/15 17:41:28 tonio Exp $ ---- src/FbTk/I18n.cc.orig 2005-05-18 10:31:05.000000000 +0200 +--- src/FbTk/I18n.cc.orig 2007-01-15 17:54:14.000000000 +0100 +++ src/FbTk/I18n.cc -@@ -74,7 +74,9 @@ void NLSInit(const char *catalog) { - I18n::I18n():m_multibyte(false), m_catalog_fd((nl_catd)(-1)) { +@@ -76,7 +76,9 @@ void NLSInit(const char *catalog) { + I18n::I18n():m_multibyte(false), m_utf8_translate(false), m_catalog_fd((nl_catd)(-1)) { #ifdef HAVE_SETLOCALE //make sure we don't get 0 to m_locale string - char *temp = setlocale(LC_MESSAGES, ""); + char *temp; + (void)setlocale(LC_ALL, ""); + temp = setlocale(LC_MESSAGES, NULL); - m_locale = ( temp ? temp : ""); + m_locale = ( temp ? temp : ""); if (m_locale.empty()) { cerr<<"Warning: Failed to set locale, reverting to \"C\""<<endl; |