Hi,

Attached is a little patch to allow blackbox to better handle different
locales.  See
http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=20009,
http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=19688
and
http://sourceforge.net/tracker/index.php?func=detail&aid=653244&group_id=35398&atid=413960
for details and discussion.

The patch is against 0.65.0.

-Jan

-- 
Probability factor of one to one. We have normality. I repeat, we have 
normality. Anything you still can't cope with is therefore your own lookout.
$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

-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
List archives:  http://asgardsrealm.net/lurker/splash/index.html
Trouble? Contact [EMAIL PROTECTED]

Reply via email to