Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Inglis <Brian.Inglis@SystematicSW.ab.ca>2024-01-08 16:56:21 +0300
committerCorinna Vinschen <corinna@vinschen.de>2024-01-08 19:01:25 +0300
commit9a863f713af24a3b18c165c640c936a4c0b707ea (patch)
treebcdac8c5fefc8313283ed3708db6b301b7130eca /libgloss
parent573458e7fc4f5247874b139a17e7e54827c92440 (diff)
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>
Diffstat (limited to 'libgloss')
0 files changed, 0 insertions, 0 deletions