[Bug libc/3506] strverscmp misbehaves with additional text after the version number

jakub at redhat dot com sourceware-bugzilla@sourceware.org
Mon Nov 27 15:26:00 GMT 2006


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



More information about the Glibc-bugs mailing list