summaryrefslogtreecommitdiff
path: root/wm/fluxbox/patches
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-05-23 16:30:03 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-05-23 16:30:03 +0000
commit5c78f724ad6b5ebd04f0ee275c35933a8d79e440 (patch)
treef54f8a9f4c64fa556e90c27459396bd1b9a91021 /wm/fluxbox/patches
parentf59839502bd51c3d7335d833e9912cbf25e317b6 (diff)
downloadpkgsrc-5c78f724ad6b5ebd04f0ee275c35933a8d79e440.tar.gz
Re-add a patch to fix the problems with setlocale(3).
Diffstat (limited to 'wm/fluxbox/patches')
-rw-r--r--wm/fluxbox/patches/patch-af15
1 files changed, 15 insertions, 0 deletions
diff --git a/wm/fluxbox/patches/patch-af b/wm/fluxbox/patches/patch-af
new file mode 100644
index 00000000000..128a02536ee
--- /dev/null
+++ b/wm/fluxbox/patches/patch-af
@@ -0,0 +1,15 @@
+$NetBSD: patch-af,v 1.1 2004/05/23 16:30:03 xtraeme Exp $
+
+--- src/I18n.cc.orig 2004-05-23 18:20:51.000000000 +0200
++++ src/I18n.cc 2004-05-23 18:22:21.000000000 +0200
+@@ -54,7 +54,9 @@
+ I18n::I18n():m_multibyte(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_ALL, "");
++ char *temp;
++ (void)setlocale(LC_ALL, "");
++ temp = setlocale(LC_MESSAGES, NULL);
+ m_locale = ( temp ? temp : "");
+ if (m_locale.empty()) {
+ cerr<<"Warning: Failed to set locale, reverting to \"C\""<<endl;