From cf376bc7dcdbdd886ddb35870c8636d14a955b39 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 6 Dec 2010 20:54:15 -0800 Subject: [PATCH] i18n: Remove unnecessary #ifs. The test for LC_MESSAGES should not be necessary because Gnulib ensures that LC_MESSAGES is always defined. The test for ENABLE_NLS should not be necessary because PSPP has not supported that configuration for some time. --- src/libpspp/i18n.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/libpspp/i18n.c b/src/libpspp/i18n.c index 49346171..5d03d19a 100644 --- a/src/libpspp/i18n.c +++ b/src/libpspp/i18n.c @@ -229,17 +229,13 @@ recode_substring_pool (const char *to, const char *from, void i18n_init (void) { -#if ENABLE_NLS setlocale (LC_CTYPE, ""); -#ifdef LC_MESSAGES setlocale (LC_MESSAGES, ""); -#endif #if HAVE_LC_PAPER setlocale (LC_PAPER, ""); #endif bindtextdomain (PACKAGE, relocate(locale_dir)); textdomain (PACKAGE); -#endif /* ENABLE_NLS */ assert (default_encoding == NULL); default_encoding = xstrdup (locale_charset ()); -- 2.30.2