Lines Matching refs:locales
509 if (locales[cp->internal]->flags & LC_debug)
514 else if (locales[cp->internal]->flags & LC_default)
2229 sfprintf(sfstderr, "locale setf %17s %16s\n", cp->name, locales[cp->internal]->name);
2231 if (locales[cp->internal]->flags & LC_debug)
2240 else if ((locales[cp->internal]->flags & LC_utf8) && !(ast.locale.set & AST_LC_test))
2245 if ((locales[cp->internal]->flags & LC_local) || !(ast.mb_width = wcwidth))
2250 else if ((locales[cp->internal]->flags & LC_default) || (ast.mb_cur_max = MB_CUR_MAX) <= 1 || !(ast.mb_len = mblen) || !(ast.mb_towc = mbtowc))
2303 sfprintf(sfstderr, "locale setf %17s %16s\n", cp->name, locales[cp->internal]->name);
2307 if (locales[cp->internal]->flags & LC_local)
2308 dp = locales[cp->internal]->territory == &lc_territories[0] ? &default_numeric : *locales[cp->internal]->territory->code == 'e' ? &eu_numeric : &us_numeric;
2392 locales[0]->flags &= ~lc->flags;
2393 locales[1]->flags &= ~lc->flags;
2396 return (locales[1]->flags & (1<<category)) ? locales[1]->name : locales[0]->name;
2446 if ((flags & LC_setenv) && lc_all && locales[category])
2450 return (char*)locales[category]->name;
2456 if (locales[category] != lc)
2461 if (locales[i] == lc)
2495 locales[category] = lc;
2498 locales[category] = lc_categories[category].prev;
2541 if ((locales[category]->flags | lc_categories[category].flags) & LC_default)
2543 if ((locales[category]->flags | lc_categories[category].flags) & LC_local)
2545 if ((locales[category]->flags | lc_categories[category].flags) & LC_setlocale)
2547 if ((locales[category]->flags | lc_categories[category].flags) & LC_setenv)
2698 return (char*)locales[category]->name;
2709 if (locales[j] == locales[i])
2713 return (char*)locales[1]->name;
2715 if (cat[i] >= 0 && !(locales[i]->flags & LC_default))
2725 sfprintf(sp, "%s", locales[i]->name);
2728 return (char*)locales[0]->name;
2800 sfprintf(sfstderr, "locale env %17s %16s %16s %16s\n", lc_categories[i].name, locales[i]->name, "", lc_categories[i].prev ? lc_categories[i].prev->name : (char*)0);
2833 return (char*)locales[category]->name;