summaryrefslogtreecommitdiff
path: root/wm/bsetroot/patches/patch-ac
blob: b5b4ca4e72a928facd605e8798fd54699e528eae (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:50: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