diff options
author | jschauma <jschauma> | 2003-08-14 14:17:39 +0000 |
---|---|---|
committer | jschauma <jschauma> | 2003-08-14 14:17:39 +0000 |
commit | 60e5e14a1911f40196673dd54e227d3453b275c0 (patch) | |
tree | 1c7a47b29efad52892bfc0a1d67974d27ac5a7b0 /wm/fluxbox/patches | |
parent | 95d0402a737dfaa7be62a4e618b25b90681ec263 (diff) | |
download | pkgsrc-60e5e14a1911f40196673dd54e227d3453b275c0.tar.gz |
Finally apply patch originally provided in PR pkg/20009 and re-submitted
in PR pkg/22476 by Dandy Sakano. This patch corrects the erraneous usage
of the return value of setlocale(3). This bug has been submitted to the
fluxbox bugbox, but apparently has not yet been dealt with.
Diffstat (limited to 'wm/fluxbox/patches')
-rw-r--r-- | wm/fluxbox/patches/patch-ae | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/wm/fluxbox/patches/patch-ae b/wm/fluxbox/patches/patch-ae new file mode 100644 index 00000000000..c9f1ed7f16d --- /dev/null +++ b/wm/fluxbox/patches/patch-ae @@ -0,0 +1,15 @@ +$NetBSD: patch-ae,v 1.1 2003/08/14 14:17:41 jschauma Exp $ + +--- src/I18n.cc.orig 2003-08-14 10:03:53.000000000 -0400 ++++ src/I18n.cc 2003-08-14 10:05:06.000000000 -0400 +@@ -58,7 +58,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.size() == 0) { + cerr<<"Warning: Failed to set locale, reverting to \"C\""<<endl; |