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 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/src/libpspp/i18n.c b/src/libpspp/i18n.c
index 4934617..5d03d19 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 ());
--
1.7.1
_______________________________________________
pspp-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/pspp-dev