This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11828] spurious hi-word part in nl_langinfo on 64bit platform
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 22 Jul 2010 05:21:18 -0000
- Subject: [Bug libc/11828] spurious hi-word part in nl_langinfo on 64bit platform
- References: <20100722000621.11828.samuel.thibault@ens-lyon.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jakub at redhat dot com 2010-07-22 05:21 -------
You haven't provided the testcase, but from what you say I'd say it is a user
error. nl_langinfo returns the pointer from the union, so if you need the word
instead, you need to:
union { char *str; unsigned int word; } u;
u.str = nl_langinfo (...);
xxx = u.word;
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11828
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.