]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/unicode/charcnv.c
Integrate talloc from Samba, cleanup configure functions checks
[netatalk.git] / libatalk / unicode / charcnv.c
index 98e8ffccd53b28905f752591777d292725dc7ec8..e4f6d2b3b2a86ac698ea38000e23406f0141250b 100644 (file)
@@ -139,13 +139,11 @@ static const char *charset_name(charset_t ch)
     if (!ret)
         ret = charset_names[ch];
 
-#if defined(HAVE_NL_LANGINFO) && defined(CODESET)
+#if defined(CODESET)
     if (ret && strcasecmp(ret, "LOCALE") == 0) {
         const char *ln = NULL;
 
-#ifdef HAVE_SETLOCALE
         setlocale(LC_ALL, "");
-#endif
         ln = nl_langinfo(CODESET);
         if (ln) {
             /* Check whether the charset name is supported