This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: A bug in strverscmp.c?
- To: "H . J . Lu" <hjl at valinux dot com>
- Subject: Re: A bug in strverscmp.c?
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 02 Feb 2001 00:22:52 -0800
- Cc: GNU C Library <libc-alpha at sourceware dot cygnus dot com>
- References: <20010201094846.A23750@valinux.com>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
"H . J . Lu" <hjl@valinux.com> writes:
> This testcase prints "-45". I was expecting a positive number.
Why? "2.8" is smaller than "2.8-0.4". This is consistent with your
ChangeLog comment
> * string/strverscmp.c (__strverscmp): Treat '\0' as the
> lowest version.
...and also with the contents of the tst-svc.expect file. I'm adding
your two strings as well but the code should be fine without a change.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------