This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5486] nl_langinfo() returns invalid pointer instead of expected empty string
- From: "derick at php dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 15 Dec 2007 14:39:07 -0000
- Subject: [Bug libc/5486] nl_langinfo() returns invalid pointer instead of expected empty string
- References: <20071213225007.5486.bugs@daylessday.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From derick at php dot net 2007-12-15 14:39 -------
Roland, I understand that with an invalid valid, it returns undefined behavior.
But in comment #1 Ulrich states:
0x11 is no invalid argument.
And what is even *stranger* is that in comment #3 Jakub writes:
nl_langinfo doesn't return always char pointers.
For some values it returns unsigned int and for others uint32_t, it really
depends on the value.
*This* fact I can not find anywhere in either the docs, the header file *or* the
X/Open specs. And because of that, there is no way to handle this in any
application.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=5486
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.