4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-18 23:12:15 +08:00
Brian Inglis 9a863f713a fix strverscmp comparison of digit sequence with non-digits
From: Rich Felker <dalias@aerifal.cx>
Date: Mon, 7 Nov 2022 22:17:55 -0500

the rule that longest digit sequence not beginning with a zero is
greater only applies when both sequences being compared are
non-degenerate. this is spelled out explicitly in the man page, which
may be deemed authoritative for this nonstandard function: "If one or
both of these is empty, then return what strcmp(3) would have
returned..."

we were wrongly treating any sequence of digits not beginning with a
zero as greater than a non-digit in the other string.

Signed-off-by: Brian Inglis <Brian.Inglis@SystematicSW.ab.ca>
2024-01-08 17:01:25 +01:00
..
2023-12-04 10:26:41 +01:00
2023-12-02 22:22:26 -05:00
2022-07-13 06:55:41 +02:00
2023-09-11 09:23:05 +02:00
2023-12-31 09:08:21 -07:00
2023-08-09 11:38:03 +02:00
2023-07-18 13:43:29 -04:00
2023-08-17 18:14:15 -04:00
2023-12-31 12:00:18 -05:00