diff options
author | jschauma <jschauma@pkgsrc.org> | 2003-08-14 14:17:39 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2003-08-14 14:17:39 +0000 |
commit | 062e4cee8e7f14911a7b4afd9b99c8d91e8e048f (patch) | |
tree | 1c7a47b29efad52892bfc0a1d67974d27ac5a7b0 /wm | |
parent | 06cdc8904d1164407f76a6fe4240c5f2daf61b6c (diff) | |
download | pkgsrc-062e4cee8e7f14911a7b4afd9b99c8d91e8e048f.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')
-rw-r--r-- | wm/fluxbox/distinfo | 3 | ||||
-rw-r--r-- | wm/fluxbox/patches/patch-ae | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/wm/fluxbox/distinfo b/wm/fluxbox/distinfo index 5d84d01ebce..4f487eb093a 100644 --- a/wm/fluxbox/distinfo +++ b/wm/fluxbox/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.8 2003/07/28 17:50:11 hubertf Exp $ +$NetBSD: distinfo,v 1.9 2003/08/14 14:17:39 jschauma Exp $ SHA1 (fluxbox-0.9.4.tar.bz2) = b0b5c9f8befc6e2014fed61bb09262ecae0b8b58 Size (fluxbox-0.9.4.tar.bz2) = 442182 bytes @@ -6,3 +6,4 @@ SHA1 (patch-aa) = 3d28a16dc3131b0b723f9c5a0ed86be7d7aadd31 SHA1 (patch-ab) = 296fe52f6215612ed94a0c9279ac804e42efb06c SHA1 (patch-ac) = fcbf8b9978b145680a27a6e4796d8a5738a9c035 SHA1 (patch-ad) = 9fe4a9fe549afc3f402b0b11050c69f3c9621118 +SHA1 (patch-ae) = f6424828354d6118ee350ae4739a6ebeb0db5bdb 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; |