Lines Matching refs:codeset
359 const char *codeset; in locale_charset() local
367 codeset = nl_langinfo (CODESET); in locale_charset()
373 if (codeset != NULL && strcmp (codeset, "US-ASCII") == 0) in locale_charset()
421 codeset = buf; in locale_charset()
451 codeset = locale; in locale_charset()
467 codeset = buf; in locale_charset()
508 codeset = locale; in locale_charset()
514 codeset = ""; in locale_charset()
518 codeset = buf; in locale_charset()
524 if (codeset == NULL) in locale_charset()
526 codeset = ""; in locale_charset()
532 if (strcmp (codeset, aliases) == 0 in locale_charset()
535 codeset = aliases + strlen (aliases) + 1; in locale_charset()
542 if (codeset[0] == '\0') in locale_charset()
543 codeset = "ASCII"; in locale_charset()
548 if (strcmp (codeset, "UTF-8") == 0 && MB_CUR_MAX <= 1) in locale_charset()
549 codeset = "ASCII"; in locale_charset()
552 return codeset; in locale_charset()