From: John Darrington Date: Tue, 14 Apr 2009 02:03:52 +0000 (+0800) Subject: Ensure that setlocale (LC_MESSAGES is called when appropriate. X-Git-Tag: v0.7.3~160 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp-builds.git;a=commitdiff_plain;h=5d31af536467b5774fb04ebc998ef459e893f24c Ensure that setlocale (LC_MESSAGES is called when appropriate. The wrong preprocessor macro was being tested before calling setlocale (LC_MESSAGES, "") which resulted in translations not being loaded. --- diff --git a/src/libpspp/i18n.c b/src/libpspp/i18n.c index 2be02f26..fb3973f4 100644 --- a/src/libpspp/i18n.c +++ b/src/libpspp/i18n.c @@ -190,7 +190,7 @@ i18n_init (void) { #if ENABLE_NLS setlocale (LC_CTYPE, ""); -#if HAVE_LC_MESSAGES +#ifdef LC_MESSAGES setlocale (LC_MESSAGES, ""); #endif #if HAVE_LC_PAPER