pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[misc 15/18] i18n: Remove unnecessary #ifs.


From: Ben Pfaff
Subject: [misc 15/18] i18n: Remove unnecessary #ifs.
Date: Sat, 11 Dec 2010 22:20:09 -0800

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]