Lines Matching refs:locale
1 /* hard-locale.c -- Determine whether a locale is hard.
24 # include <locale.h>
35 #include "hard-locale.h"
37 /* Return nonzero if the current CATEGORY locale is hard, i.e. if you
55 char *locale = malloc (strlen (p) + 1);
56 if (locale)
58 strcpy (locale, p);
60 /* Temporarily set the locale to the "C" and "POSIX" locales
62 or the other is the caller's locale. */
64 && strcmp (p, locale) == 0)
66 && strcmp (p, locale) == 0))
69 /* Restore the caller's locale. */
70 setlocale (category, locale);
71 free (locale);