Lines Matching refs:locale
285 const char *locale = NULL; in locale_charset() local
292 locale = setlocale (LC_CTYPE, NULL); in locale_charset()
294 if (locale == NULL || locale[0] == '\0') in locale_charset()
296 locale = getenv ("LC_ALL"); in locale_charset()
297 if (locale == NULL || locale[0] == '\0') in locale_charset()
299 locale = getenv ("LC_CTYPE"); in locale_charset()
300 if (locale == NULL || locale[0] == '\0') in locale_charset()
301 locale = getenv ("LANG"); in locale_charset()
308 codeset = locale; in locale_charset()
322 const char *locale; in locale_charset() local
329 locale = getenv ("LC_ALL"); in locale_charset()
330 if (locale == NULL || locale[0] == '\0') in locale_charset()
332 locale = getenv ("LC_CTYPE"); in locale_charset()
333 if (locale == NULL || locale[0] == '\0') in locale_charset()
334 locale = getenv ("LANG"); in locale_charset()
336 if (locale != NULL && locale[0] != '\0') in locale_charset()
339 const char *dot = strchr (locale, '.'); in locale_charset()
359 codeset = locale; in locale_charset()