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: "bugs at daylessday dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 15 Dec 2007 15:02:23 -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 bugs at daylessday dot org 2007-12-15 15:02 -------
1. "0x11 is no invalid argument."
Ok, so it's valid and non-empty string is expected.
2. "You can only use the values which are documented as legal parameters."
Ok, so the value is illegal, so an empty string is expected.
3. "Calling nl_langinfo with an invalid nl_item argument invokes undefined
behavior"
No, the manual clearly says the behaviour IS defined: an empty string is
returned.
---
So this argument is valid (1), illegal (2) and invalid (3) in the same time.
And function behaviour is both defined (man nl_langinfo) and undefined (comment
#10).
Can you guys finally read the report and compare the actual behaviour of the
function and the behaviour described in the manual?
If nl_langinfo() doesn't correspond to its own description, then I guess its
name should be changed to something else.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
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.