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-14 22:52 -------
(In reply to comment #6)
> Stop reopening the bug, this is no programming instruction course here.  If your
> program wouldn't be buggy you would not have problems.  You can only use the
> values which are documented as legal parameters.

hmm, I don't understand something here. You first say that value 0x11 is not an
invalid argument *and* that nl_langinfo() can also return something else than a
char*. But at the same time nl_langinfo is both documented, as well as declared
as a function returning a char*. So, how is this buggy behavior in the app - I'd
say it's a bug in nl_langinfo() if it returns something else than a char* -
especially because it's not documented that it should return any sort of other
value. So this is either a bug in nl_langinfo(), or one in the
/usr/include/langinfo.h AND the man page...

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