Lines Matching defs:locale
2325 * itself to process any locale specific environment variables, and collect
2335 char *locale;
2346 * See if we have any locale environment settings. These
2390 * If we have a locale setting make sure it's worth processing further.
2392 * ensure no one escapes the /usr/lib/locale hierarchy, don't allow
2393 * the locale to contain a segment that leads upward in the file system
2395 * the /usr/lib/locale hierarchy, there is no need to extensively
2399 * the string so that new locale setting can generically cleanup any
2402 if ((locale = glcs[CI_LCMESSAGES].lc_un.lc_ptr) != NULL) {
2403 if (((*locale == 'C') && (*(locale + 1) == '\0')) ||
2404 (strcmp(locale, MSG_ORIG(MSG_TKN_POSIX)) == 0) ||
2405 (strstr(locale, MSG_ORIG(MSG_TKN_DOTDOT)) != NULL))
2408 glcs[CI_LCMESSAGES].lc_un.lc_ptr = strdup(locale);