Lines Matching refs:lc

94 	Lc_t*				lc;  in native_locale()  local
105 if (!(lc = lcmake(locale))) in native_locale()
107 lang = lc->language->index; in native_locale()
109 for (ap = lc->attributes; ap; ap = ap->next) in native_locale()
114 for (i = 0; i < elementsof(lc->territory->languages); i++) in native_locale()
115 if (lc->territory->languages[i] == lc->language) in native_locale()
117 ctry = lc->territory->indices[i]; in native_locale()
134 if (lc->charset->ms) in native_locale()
135 sfsprintf(buf, siz, "%s_%s.%s", lbuf, cbuf, lc->charset->ms); in native_locale()
795 Lc_t* lc; in default_setlocale() local
799 if (!(lc = lcmake(locale)) || !(lc->flags & LC_default)) in default_setlocale()
801 locales[0]->flags &= ~lc->flags; in default_setlocale()
802 locales[1]->flags &= ~lc->flags; in default_setlocale()
803 return lc->name; in default_setlocale()
817 single(int category, Lc_t* lc, unsigned int flags) in single() argument
825 lc_categories[category].prev = lc; in single()
829lc && (!(lc_categories[category].flags & LC_setlocale) || !(lc = lc_categories[category].prev)) &&… in single()
830 lc = lcmake(NiL); in single()
832 if (locales[category] != lc) in single()
837 if (locales[i] == lc) in single()
839 sys = (char*)lc->name; in single()
843 else if (lc->flags & (LC_debug|LC_local)) in single()
845 else if (!(sys = setlocale(lc_categories[category].external, lc->name)) && in single()
846 (streq(lc->name, lc->code) || !(sys = setlocale(lc_categories[category].external, lc->code))) && in single()
847 !streq(lc->code, lc->language->code)) in single()
848 sys = setlocale(lc_categories[category].external, lc->language->code); in single()
856 if (!(lc->flags & LC_checked)) in single()
860 if (mcfind(path, lc->code, NiL, LC_MESSAGES, 0)) in single()
861 lc->flags |= LC_local; in single()
862 lc->flags |= LC_checked; in single()
864 if (!(lc->flags & LC_local)) in single()
869 locales[category] = lc; in single()
875 … ((lc->flags & LC_default) || category == AST_LC_MESSAGES && lc->name[0] == 'e' && lc->name[1] == … in single()
886 return (char*)lc->name; in single()
888 …sfprintf(sfstderr, "locale set %17s %16s %16s %16s %s%s\n", lc_categories[category].name, lc->nam… in single()
889 return (char*)lc->name; in single()