From 5d31af536467b5774fb04ebc998ef459e893f24c Mon Sep 17 00:00:00 2001 From: John Darrington Date: Tue, 14 Apr 2009 10:03:52 +0800 Subject: [PATCH] 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. --- src/libpspp/i18n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2