Lines Matching refs:CODESET
359 const char *codeset;
366 /* Most systems support nl_langinfo (CODESET) nowadays. */
367 codeset = nl_langinfo (CODESET);
370 /* Cygwin < 1.7 does not have locales. nl_langinfo (CODESET) always
373 if (codeset != NULL && strcmp (codeset, "US-ASCII") == 0)
421 codeset = buf;
451 codeset = locale;
467 codeset = buf;
476 /* Allow user to override the codeset, as set in the operating system,
508 codeset = locale;
514 codeset = "";
518 codeset = buf;
524 if (codeset == NULL)
526 codeset = "";
532 if (strcmp (codeset, aliases) == 0
535 codeset = aliases + strlen (aliases) + 1;
542 if (codeset[0] == '\0')
543 codeset = "ASCII";
547 (the default codeset) does not work when MB_CUR_MAX is 1. */
548 if (strcmp (codeset, "UTF-8") == 0 && MB_CUR_MAX <= 1)
549 codeset = "ASCII";
552 return codeset;