Lines Matching refs:locale
1 /* hard-locale.c -- Determine whether a locale is hard.
23 #include "hard-locale.h"
26 # include <locale.h>
32 /* Return nonzero if the current CATEGORY locale is hard, i.e. if you
50 char *locale = malloc (strlen (p) + 1);
51 if (locale)
53 strcpy (locale, p);
55 /* Temporarily set the locale to the "C" and "POSIX" locales
57 or the other is the caller's locale. */
59 && strcmp (p, locale) == 0)
61 && strcmp (p, locale) == 0))
64 /* Restore the caller's locale. */
65 setlocale (category, locale);
66 free (locale);