aboutsummaryrefslogtreecommitdiff
path: root/posix/bug-regex5.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-11-21 03:41:31 +0000
committerRoland McGrath <roland@gnu.org>2002-11-21 03:41:31 +0000
commit5d0bbaaf3a253601974ec9bc30f49fc4452d12ed (patch)
tree628c2cfc45c98444356af3891817839f87e737e2 /posix/bug-regex5.c
parent9a5b9056e0b3db14d5f15c10d9c4114568c5d65b (diff)
downloadglibc-5d0bbaaf3a253601974ec9bc30f49fc4452d12ed.zip
glibc-5d0bbaaf3a253601974ec9bc30f49fc4452d12ed.tar.gz
glibc-5d0bbaaf3a253601974ec9bc30f49fc4452d12ed.tar.bz2
* 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.
Diffstat (limited to 'posix/bug-regex5.c')
-rw-r--r--posix/bug-regex5.c3
1 files changed, 2 insertions, 1 deletions
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");