diff options
author | Bruno Haible <bruno@clisp.org> | 2006-10-18 12:03:51 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2006-10-18 12:03:51 +0000 |
commit | b1d0cb241323066c0a5cc3ad2d9da1a433263d74 (patch) | |
tree | 4d3c8cee1b27a41e3cc39ab05c6c223fbf201734 /lib/localcharset.c | |
parent | 7a9d288037f6bbdd7bc7cbbf1ab9cb2a21ad99e5 (diff) | |
download | gnulib-b1d0cb241323066c0a5cc3ad2d9da1a433263d74.tar.gz |
No need any more to check for setlocale - all systems have it.
Diffstat (limited to 'lib/localcharset.c')
-rw-r--r-- | lib/localcharset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/localcharset.c b/lib/localcharset.c index a2fc5dc553..a0f7cca691 100644 --- a/lib/localcharset.c +++ b/lib/localcharset.c @@ -41,7 +41,7 @@ # if HAVE_LANGINFO_CODESET # include <langinfo.h> # else -# if HAVE_SETLOCALE +# if 0 /* see comment below */ # include <locale.h> # endif # endif @@ -351,7 +351,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') |