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


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