]> arthur.barton.de Git - netatalk.git/commitdiff
LOG for LOCALE
authorHAT <hat@fa2.so-net.ne.jp>
Fri, 16 Mar 2012 14:16:28 +0000 (23:16 +0900)
committerHAT <hat@fa2.so-net.ne.jp>
Fri, 16 Mar 2012 14:16:28 +0000 (23:16 +0900)
libatalk/unicode/charcnv.c

index 86f29c6a77972de00a151d9d1f57b0767993d1b9..33baa64681bdf8e98ba10777c09ad7ba84fc99ea 100644 (file)
@@ -127,9 +127,10 @@ static const char *charset_name(charset_t ch)
         if (ln) {
             /* Check whether the charset name is supported
                by iconv */
+            LOG(log_info, logtype_default, "Locale charset is '%s'", ln);
             atalk_iconv_t handle = atalk_iconv_open(ln, "UCS-2");
             if (handle == (atalk_iconv_t) -1) {
-                LOG(log_debug, logtype_default, "Locale charset '%s' unsupported, using ASCII instead", ln);
+                LOG(log_warning, logtype_default, "Locale charset '%s' unsupported, using ASCII instead", ln);
                 ln = "ASCII";
             } else {
                 atalk_iconv_close(handle);
@@ -140,6 +141,7 @@ static const char *charset_name(charset_t ch)
         ret = ln;
     }
 #else /* system doesn't have LOCALE support */
+    LOG(log_warning, logtype_default, "system doesn't have LOCALE support");
     if (ch == CH_UNIX) ret = NULL;
 #endif