Lines Matching refs:lc

105 	Lc_t*				lc;  in native_locale()  local
116 if (!(lc = lcmake(locale))) in native_locale()
118 lang = lc->language->index; in native_locale()
120 for (ap = lc->attributes; ap; ap = ap->next) in native_locale()
125 for (i = 0; i < elementsof(lc->territory->languages); i++) in native_locale()
126 if (lc->territory->languages[i] == lc->language) in native_locale()
128 ctry = lc->territory->indices[i]; in native_locale()
145 if (lc->charset->ms) in native_locale()
146 sfsprintf(buf, siz, "%s_%s.%s", lbuf, cbuf, lc->charset->ms); in native_locale()
2413 Lc_t* lc; in default_setlocale() local
2417 if (!(lc = lcmake(locale)) || !(lc->flags & LC_default)) in default_setlocale()
2419 locales[0]->flags &= ~lc->flags; in default_setlocale()
2420 locales[1]->flags &= ~lc->flags; in default_setlocale()
2421 return lc->name; in default_setlocale()
2460 single(int category, Lc_t* lc, unsigned int flags) in single() argument
2467 …sfprintf(sfstderr, "locale single %16s %16s flags %04x\n", lc_categories[category].name, lc ? lc->… in single()
2472 lc_categories[category].prev = lc; in single()
2480lc && (!(lc_categories[category].flags & LC_setlocale) || !(lc = lc_categories[category].prev)) &&… in single()
2481 lc = lcmake(NiL); in single()
2483 if (locales[category] != lc) in single()
2488 if (locales[i] == lc) in single()
2490 sys = (char*)lc->name; in single()
2494 else if (lc->flags & (LC_debug|LC_local)) in single()
2496 else if (!(sys = setlocale(lc_categories[category].external, lc->name)) && in single()
2497 (streq(lc->name, lc->code) || !(sys = setlocale(lc_categories[category].external, lc->code))) && in single()
2498 !streq(lc->code, lc->language->code)) in single()
2499 sys = setlocale(lc_categories[category].external, lc->language->code); in single()
2501 lc->flags |= LC_checked; in single()
2509 if (!(lc->flags & LC_checked)) in single()
2513 if (mcfind(lc->code, NiL, LC_MESSAGES, 0, path, sizeof(path))) in single()
2514 lc->flags |= LC_local; in single()
2515 lc->flags |= LC_checked; in single()
2517 if (!(lc->flags & LC_local)) in single()
2522 locales[category] = lc; in single()
2528 … ((lc->flags & LC_default) || category == AST_LC_MESSAGES && lc->name[0] == 'e' && lc->name[1] == … in single()
2543 return (char*)lc->name; in single()
2548 …sfprintf(sfstderr, "locale set %17s %16s %16s %16s", lc_categories[category].name, lc->name, sys,… in single()
2578 return (char*)lc->name; in single()