/* The string is "Yellow Horse" in Czech for the curiosity */
const char *charset = intlconv_charset_id("ASCII", 1, 1);
char *s = intlconv_utf8safestr(charset, "ŽluťoučkýKůň", 128);
- if (strcmp(s, "ZlutouckyKun")) {
- tvherror(LS_MAIN, "iconv() routine is not working properly, aborting!");
+ if (s == NULL ||
+ (strcmp(s, "ZlutouckyKun") &&
+ strcmp(s, "Zlutouck'yKun") &&
+ strcmp(s, "?lu?ou?k?K??"))) {
+ tvherror(LS_MAIN, "iconv() routine is not working properly (%s), aborting!", s);
tvh_safe_usleep(2000000);
abort();
}
tvheadend_cwd = dirname(tvh_strdupa(tvheadend_cwd0));
/* Set locale */
- setlocale(LC_ALL, "C.utf8");
+ setlocale(LC_ALL, "");
setlocale(LC_NUMERIC, "C");
tvh_gettext_init();