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/5486] nl_langinfo() returns invalid pointer instead of expected empty string


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


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