summaryrefslogtreecommitdiff
path: root/wm/fluxbox/patches/patch-ac
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2003-02-14 20:57:55 +0000
committerwiz <wiz@pkgsrc.org>2003-02-14 20:57:55 +0000
commit633219a8a5c3e48bac182d8bcb9ea70497a58fc2 (patch)
tree4446e502e549698cf965fb6e522ac4017543767d /wm/fluxbox/patches/patch-ac
parent79492e16f37e9e9642b67eab09066702bf3dc061 (diff)
downloadpkgsrc-633219a8a5c3e48bac182d8bcb9ea70497a58fc2.tar.gz
Update to 0.1.14nb1: include patch from 20009 for better setlocale
handling.
Diffstat (limited to 'wm/fluxbox/patches/patch-ac')
-rw-r--r--wm/fluxbox/patches/patch-ac15
1 files changed, 15 insertions, 0 deletions
diff --git a/wm/fluxbox/patches/patch-ac b/wm/fluxbox/patches/patch-ac
new file mode 100644
index 00000000000..d1052dd8a19
--- /dev/null
+++ b/wm/fluxbox/patches/patch-ac
@@ -0,0 +1,15 @@
+$NetBSD: patch-ac,v 1.3 2003/02/14 20:57:56 wiz Exp $
+
+--- src/i18n.cc.orig Sat Dec 7 15:14:05 2002
++++ src/i18n.cc
+@@ -61,7 +61,9 @@ void NLSInit(const char *catalog) {
+ 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.size() == 0) {
+ cerr<<"Warning: Failed to set locale, reverting to \"C\""<<endl;