This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/11828] spurious hi-word part in nl_langinfo on 64bit platform


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]