[Top][All Lists]
[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
- [misc 00/18] miscellaneous minor improvements, Ben Pfaff, 2010/12/12
- [misc 06/18] expressions: Make extract_min_valid() parameter const., Ben Pfaff, 2010/12/12
- [misc 01/18] friedman: Fix GCC warning about uninitialized fr.w., Ben Pfaff, 2010/12/12
- [misc 15/18] i18n: Remove unnecessary #ifs.,
Ben Pfaff <=
- [misc 12/18] DO REPEAT: Make this command usable anywhere., Ben Pfaff, 2010/12/12
- [misc 16/18] AGGREGATE: Align arg_func_tab[] in columns., Ben Pfaff, 2010/12/12
- [misc 10/18] NPAR TESTS: Prefer lex_match_id() over lex_match_hyphenated_word(), Ben Pfaff, 2010/12/12
- [misc 14/18] ECHO: Use text_item, as intended., Ben Pfaff, 2010/12/12
- [misc 04/18] covariance: Fix const-ness of covariance_calculate[_unnormalized] retval., Ben Pfaff, 2010/12/12
- [misc 08/18] DEBUG XFORM FAIL: Issue an error message as part of transformation., Ben Pfaff, 2010/12/12
- [misc 18/18] value-parser: Remove redundant call to lex_force_string() in parse_value()., Ben Pfaff, 2010/12/12
- [misc 17/18] GET DATA: Fix punctuation in error message., Ben Pfaff, 2010/12/12
- [misc 07/18] INPUT PROGRAM: Remove unused enumeration., Ben Pfaff, 2010/12/12
- [misc 03/18] ONEWAY: Fix warning for passing "const" pointer as non-const parameter., Ben Pfaff, 2010/12/12