From 5d0bbaaf3a253601974ec9bc30f49fc4452d12ed Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 21 Nov 2002 03:41:31 +0000 Subject: * scripts/abilist.awk: Grok function descriptor symbols. * intl/tst-gettext.c (main): Check return values from setlocale. Add necessary unsetenv's to make LANG=existing-locale check work. * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally, so aborted prior runs don't confuse things. * locale/localeinfo.h (struct locale_data: union locale_data_value): Use uintptr_t instead of unsigned int for `word' member. (_NL_CURRENT_WORD): Cast to uint32_t. * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES value. --- posix/bug-regex5.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'posix/bug-regex5.c') diff --git a/posix/bug-regex5.c b/posix/bug-regex5.c index 9d0eef1..ee4d652 100644 --- a/posix/bug-regex5.c +++ b/posix/bug-regex5.c @@ -21,7 +21,8 @@ main (void) } printf ("current locale : %s\n", ca); - nrules = (size_t) nl_langinfo (_NL_COLLATE_NRULES); + u.string = nl_langinfo (_NL_COLLATE_NRULES); + nrules = u.word; if (nrules == 0) { printf("No rule\n"); -- cgit v1.1