Lines Matching refs:locale
375 const char *locale; in locale_charset() local
378 locale = getenv ("LC_ALL"); in locale_charset()
379 if (locale == NULL || locale[0] == '\0') in locale_charset()
381 locale = getenv ("LC_CTYPE"); in locale_charset()
382 if (locale == NULL || locale[0] == '\0') in locale_charset()
383 locale = getenv ("LANG"); in locale_charset()
385 if (locale != NULL && locale[0] != '\0') in locale_charset()
389 const char *dot = strchr (locale, '.'); in locale_charset()
428 const char *locale = NULL; in locale_charset() local
435 locale = setlocale (LC_CTYPE, NULL); in locale_charset()
437 if (locale == NULL || locale[0] == '\0') in locale_charset()
439 locale = getenv ("LC_ALL"); in locale_charset()
440 if (locale == NULL || locale[0] == '\0') in locale_charset()
442 locale = getenv ("LC_CTYPE"); in locale_charset()
443 if (locale == NULL || locale[0] == '\0') in locale_charset()
444 locale = getenv ("LANG"); in locale_charset()
451 codeset = locale; in locale_charset()
471 const char *locale; in locale_charset() local
478 locale = getenv ("LC_ALL"); in locale_charset()
479 if (locale == NULL || locale[0] == '\0') in locale_charset()
481 locale = getenv ("LC_CTYPE"); in locale_charset()
482 if (locale == NULL || locale[0] == '\0') in locale_charset()
483 locale = getenv ("LANG"); in locale_charset()
485 if (locale != NULL && locale[0] != '\0') in locale_charset()
488 const char *dot = strchr (locale, '.'); in locale_charset()
508 codeset = locale; in locale_charset()