public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/10721] New: strverscmp : manual versus library
@ 2009-10-02 12:21 lucien at haijen dot be
2009-10-29 20:50 ` [Bug libc/10721] " drepper at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: lucien at haijen dot be @ 2009-10-02 12:21 UTC (permalink / raw)
To: glibc-bugs
There seems to be a bug either in the manual (Version 2.8, edition 0,12,
page 88) or in the library routine (GCC 4.2.4) for the routine strverscmp().
The manual states for fractional/fractional comparisions : "If a common prefix
contains only leading zeros the longest part is less than the other one ; ..."
So : strverscmp("00","0") returns -1 (OK)
strverscmp("00",""001") returns -1 (OK)
strverscmp("00","010") returns -1 (not OK ?)
strverscmp("00","0100") returns -1 (not OK ?)
The last two examples certainly have one prefix '0' in common ... or don't they ?
Do I misundestand the wording of the manual ?
--
Summary: strverscmp : manual versus library
Product: glibc
Version: 2.8
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: lucien at haijen dot be
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10721
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug libc/10721] strverscmp : manual versus library
2009-10-02 12:21 [Bug libc/10721] New: strverscmp : manual versus library lucien at haijen dot be
@ 2009-10-29 20:50 ` drepper at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: drepper at redhat dot com @ 2009-10-29 20:50 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2009-10-29 20:49 -------
(In reply to comment #0)
> Do I misundestand the wording of the manual ?
Yes. What you're comparing are not fractional parts. These are full numbers
and the value counts.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=10721
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-29 20:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-02 12:21 [Bug libc/10721] New: strverscmp : manual versus library lucien at haijen dot be
2009-10-29 20:50 ` [Bug libc/10721] " drepper at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).