X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Flocalcharset.c;h=a0f7cca691879bbd6b4f14f7b2e58f11123d87a2;hb=85fc15b1bf5d976584d8f174682a0d677692f0ea;hp=cd44ca658c9451f3f6638f9d039388a198a35802;hpb=49e472308614968a6291bd862fcaa01be063d8fe;p=gnulib.git diff --git a/lib/localcharset.c b/lib/localcharset.c index cd44ca658..a0f7cca69 100644 --- a/lib/localcharset.c +++ b/lib/localcharset.c @@ -18,9 +18,7 @@ /* Written by Bruno Haible . */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Specification. */ #include "localcharset.h" @@ -43,7 +41,7 @@ # if HAVE_LANGINFO_CODESET # include # else -# if HAVE_SETLOCALE +# if 0 /* see comment below */ # include # endif # endif @@ -66,6 +64,11 @@ # define relocate(pathname) (pathname) #endif +/* Get LIBDIR. */ +#ifndef LIBDIR +# include "configmake.h" +#endif + #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') @@ -348,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')