Lines Matching refs:locale
31 #include <locale.h>
221 char *locale;
223 locale = setlocale(LC_CTYPE, "");
224 if (locale && *locale) {
225 len = strlen(locale);
227 locale = "C";
231 if ((!strncmp(locale, "/\x03:", 3)) &&
232 (!strcmp(&locale[len - 2], ";/"))) {
233 locale += 3;
237 locale = strdup(locale);
238 if (locale) {
239 locale[len] = 0;
242 return locale;
246 char *locale;
248 locale = setlocale(LC_CTYPE, "");
249 if (locale && *locale) {
250 return strdup(locale);
261 "! This table maps the host's locale names to IANA charsets",
300 "! This table maps the host's locale names to IANA charsets",
350 "! This table maps the host's locale names to IANA charsets",
401 "! This table maps the host's locale names to IANA charsets",
482 "! This table maps the host's locale names to IANA charsets",
542 "! This table maps the host's locale names to IANA charsets",
565 GetCharsetFromLocale(char *locale)
595 if (strcmp(buf, locale) == 0) {
655 char *locale, *newcharset;