- if (!opt.locale)
- return false;
-
- locale2utf8 = iconv_open ("UTF-8", opt.locale);
- if (locale2utf8 != (iconv_t)(-1))
- return true;
-
- logprintf (LOG_VERBOSE, "Conversion from %s to %s isn't supported\n",
- quote (opt.locale), quote ("UTF-8"));
- locale2utf8 = NULL;
- return false;
-}
-
-/* Return a new string */
-const char *
-locale_to_utf8 (const char *str)
-{
- char *new;
-
- if (!strcasecmp (opt.locale, "utf-8"))