• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libunistring-0.9.3/lib/

Lines Matching defs:locale

1 /* Determine a canonical name for the current locale's character encoding.
53 # include <locale.h>
349 /* Determine the current locale's character encoding, and canonicalize it
374 of the locale name from the environment variables (if present) or
378 const char *locale;
381 locale = getenv ("LC_ALL");
382 if (locale == NULL || locale[0] == '\0')
384 locale = getenv ("LC_CTYPE");
385 if (locale == NULL || locale[0] == '\0')
386 locale = getenv ("LANG");
388 if (locale != NULL && locale[0] != '\0')
390 /* If the locale name contains an encoding after the dot, return
392 const char *dot = strchr (locale, '.');
412 /* Woe32 has a function returning the locale's codepage as a number:
431 const char *locale = NULL;
434 (like SunOS 4 or DJGPP) have only the C locale. Therefore we don't
436 locale name the user has set. */
438 locale = setlocale (LC_CTYPE, NULL);
440 if (locale == NULL || locale[0] == '\0')
442 locale = getenv ("LC_ALL");
443 if (locale == NULL || locale[0] == '\0')
445 locale = getenv ("LC_CTYPE");
446 if (locale == NULL || locale[0] == '\0')
447 locale = getenv ("LANG");
451 /* On some old systems, one used to set locale = "iso8859_1". On others,
454 codeset = locale;
462 /* Woe32 has a function returning the locale's codepage as a number:
474 const char *locale;
481 locale = getenv ("LC_ALL");
482 if (locale == NULL || locale[0] == '\0')
484 locale = getenv ("LC_CTYPE");
485 if (locale == NULL || locale[0] == '\0')
486 locale = getenv ("LANG");
488 if (locale != NULL && locale[0] != '\0')
490 /* If the locale name contains an encoding after the dot, return it. */
491 const char *dot = strchr (locale, '.');
511 codeset = locale;
515 /* OS/2 has a function returning the locale's codepage as a number. */
543 the empty string as denoting "the locale's character encoding",