Hey,

Function that does this check is as follows:

void set_utf8_locale()
{
  // set locale to common UTF-8 for wchars to be recognized correctly
  if(setlocale(LC_CTYPE, "en_US.UTF-8") == NULL) { // if en_US.UTF-8
isn't available
    char *locale = setlocale(LC_CTYPE, "");  // try the locale that
corresponds to the value of the associated environment variable LC_CTYPE
    if (locale == NULL ||
        strstr(locale, "UTF-8") == NULL || strstr(locale, "UTF8") == NULL ||
        strstr(locale, "utf-8") == NULL || strstr(locale, "utf8") == NULL)
      error(EXIT_FAILURE, 0, "LC_CTYPE locale must be of UTF-8 type");
  }
}

Is your LC_CTYPE env var set correctly? If so, easiest would be to add
few printf()s in the function above and see what actually happens.

Regards,
Vedran

<<attachment: vedran_furac.vcf>>

Reply via email to