summaryrefslogtreecommitdiff
path: root/wm/blackbox/patches/patch-ac
blob: 0eac7a0adf26b7389a03e3242b8824e881604443 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-ac,v 1.1 2003/02/20 16:54:17 jschauma Exp $

--- src/i18n.cc.orig	Thu Feb 20 11:26:34 2003
+++ src/i18n.cc	Thu Feb 20 11:28:49 2003
@@ -58,7 +58,8 @@
 I18n::I18n(void) {
   mb = False;
 #ifdef    HAVE_SETLOCALE
-  locale = setlocale(LC_ALL, "");
+  (void)setlocale(LC_ALL, "");
+  locale = setlocale(LC_MESSAGES, NULL);
   if (! locale) {
     fprintf(stderr, "failed to set locale, reverting to \"C\"\n");
 #endif // HAVE_SETLOCALE