]> 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 9e4ec67acfcd8bfd04b2d98ff8ca3e1ed3415afc..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
@@ -889,7 +887,7 @@ static size_t push_charset_flags (charset_t to_set, charset_t cap_set, char* src
     char* outbuf = (char*)dest;
     atalk_iconv_t descriptor;
     atalk_iconv_t descriptor_cap;
-    char escch;
+    char escch;                 /* 150210: uninitialized OK, depends on j */
 
     descriptor = conv_handles[CH_UCS2][to_set];
     descriptor_cap = conv_handles[CH_UCS2][cap_set];