This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/3506] strverscmp misbehaves with additional text after the version number
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 27 Nov 2006 15:25:51 -0000
- Subject: [Bug libc/3506] strverscmp misbehaves with additional text after the version number
- References: <20061111170032.3506.guichaz@yahoo.fr>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jakub at redhat dot com 2006-11-27 15:25 -------
The strverscmp function really can't change at this point, it is well documented
how it behaves and programs rely on its behavior. strverscmp only cares about
the longest substring containing consecutive digits around the first differing
byte, so not even dots mean anything to it.
You are looking for a function like rpmvercmp in <rpm/rpmlib.h> which provides
segmented comparison. But why should that be in libc?
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
http://sourceware.org/bugzilla/show_bug.cgi?id=3506
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.