From 6ee7d59b67af4f467b95b72b1c619713b7eeae3e Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 18 Oct 2006 11:56:41 +0000 Subject: [PATCH] Do not check HAVE_SETLOCALE. --- gettext-runtime/intl/ChangeLog | 4 ++++ gettext-runtime/intl/localcharset.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gettext-runtime/intl/ChangeLog b/gettext-runtime/intl/ChangeLog index 8ed79f951..3449ed1e8 100644 --- a/gettext-runtime/intl/ChangeLog +++ b/gettext-runtime/intl/ChangeLog @@ -1,3 +1,7 @@ +2006-10-17 Paul Eggert + + * localcharset.c: Do not check HAVE_SETLOCALE. + 2006-10-09 Bruno Haible * langprefs.c: Update comment about locale name syntax. diff --git a/gettext-runtime/intl/localcharset.c b/gettext-runtime/intl/localcharset.c index 73f7cc645..e796ae71c 100644 --- a/gettext-runtime/intl/localcharset.c +++ b/gettext-runtime/intl/localcharset.c @@ -42,7 +42,7 @@ # if HAVE_LANGINFO_CODESET # include # else -# if HAVE_SETLOCALE +# if 0 /* see comment below */ # include # endif # endif @@ -352,7 +352,7 @@ locale_charset (void) (like SunOS 4 or DJGPP) have only the C locale. Therefore we don't use setlocale here; it would return "C" when it doesn't support the locale name the user has set. */ -# if HAVE_SETLOCALE && 0 +# if 0 locale = setlocale (LC_CTYPE, NULL); # endif if (locale == NULL || locale[0] == '\0') -- 2.47.2