Lines Matching defs:codeset
58 * native_codeset records the codeset of the default system locale.
60 * supposed to be in the codeset of default system locale.
221 /* set default locale, and record current codeset */
680 * Functions for converting to UTF-8 from the local codeset and
681 * converting from UTF-8 to the local codeset.
697 char *codeset;
701 codeset = nl_langinfo(CODESET);
703 if (strcmp(codeset, "UTF-8") == 0)
706 if (last_codeset == NULL || strcmp(codeset, last_codeset) != 0) {
714 if ((cd = iconv_open(codeset, "UTF-8")) == (iconv_t)-1) {
716 "strings to the local codeset");
719 last_codeset = xstrdup(codeset);
730 char *codeset;
735 codeset = native_codeset;
737 codeset = nl_langinfo(CODESET);
739 if (strcmp(codeset, "UTF-8") == 0)
742 if (last_codeset == NULL || strcmp(codeset, last_codeset) != 0) {
750 if ((cd = iconv_open("UTF-8", codeset)) == (iconv_t)-1) {
752 "local codeset strings to UTF-8");
755 last_codeset = xstrdup(codeset);