This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: bug-regex5 fails for PowerPC64
- From: Roland McGrath <roland at redhat dot com>
- To: "Steve Munroe" <sjmunroe at us dot ibm dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Tue, 10 Sep 2002 13:01:11 -0700
- Subject: Re: bug-regex5 fails for PowerPC64
Does this patch help it?
--- bug-regex5.c.~1.2.~ Thu Mar 14 14:14:25 2002
+++ bug-regex5.c Tue Sep 10 12:57:41 2002
@@ -11,6 +11,7 @@ main (void)
const unsigned char *extra;
uint32_t nrules;
char *ca;
+ union locale_data_value u;
ca = setlocale (LC_ALL, "da_DK.ISO-8859-1");
if (ca == NULL)
@@ -27,7 +28,8 @@ main (void)
return 1;
}
- table_size = (size_t) nl_langinfo (_NL_COLLATE_SYMB_HASH_SIZEMB);
+ u.string = nl_langinfo (_NL_COLLATE_SYMB_HASH_SIZEMB);
+ table_size = u.word;
symb_table = (const int32_t *) nl_langinfo (_NL_COLLATE_SYMB_TABLEMB);
extra = (const unsigned char *) nl_langinfo (_NL_COLLATE_SYMB_EXTRAMB);