newlib-cygwin/newlib/libc
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
..
argz newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
ctype ctype_cp.h/ctype_iso.h: clean whitespace 2023-02-25 16:12:51 +01:00
errno Add --enable-newlib-reent-thread-local option 2022-07-13 06:55:46 +02:00
iconv newlib: info: tweak iconv node to avoid collisions 2022-12-13 05:22:09 -05:00
include RISC-V: Support long double math 2023-12-04 10:26:41 +01:00
locale newlib: nl_langinfo: Fix a bug of time stuff. 2023-11-24 09:53:11 +09:00
machine GCN: Implement '_exit' instead of 'exit' 2023-12-23 10:26:58 +01:00
misc Remove __sinit_locks / __sinit_recursive_mutex 2022-05-13 12:31:56 +02:00
posix newlib: libc: Fix indentation 2023-12-02 22:22:26 -05:00
reent Reclaim _REENT_MP_P5S in _reclaim_reent 2023-11-20 10:49:39 +01:00
search newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
signal Add --enable-newlib-reent-thread-local option 2022-07-13 06:55:46 +02:00
ssp nvptx: Don't use global constructor for SSP setup 2023-01-19 21:51:09 +01:00
stdio stdio: drop unnecessary calls to ORIENT 2023-11-20 20:59:47 +01:00
stdio64 Add _REENT_ERRNO(ptr) 2022-07-13 06:55:41 +02:00
stdlib Reentrancy, use _REENT_ERRNO() 2023-09-11 09:23:05 +02:00
string fix strverscmp comparison of digit sequence with non-digits 2024-01-08 17:01:25 +01:00
sys Minor improvement to H8 startup code 2023-12-31 09:08:21 -07:00
syscalls Add stub for getentropy 2023-08-09 11:38:03 +02:00
time strftime/wcsftime: use STRLEN, not strlen 2022-10-29 20:15:58 +02:00
unix Fix typo. 2023-07-18 13:43:29 -04:00
xdr newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
Makefile.inc Silence xsltproc when writing manpages 2022-05-04 17:05:52 -04:00
Makefile.unidata cleanup Unicode data files after generating updated tables 2021-11-16 11:24:29 +01:00
acinclude.m4 newlib: add Xtensa port 2023-08-17 18:14:15 -04:00
libc.in.xml Generate manpages for functions in chapter sys.tex 2022-05-04 17:06:19 -04:00
libc.texi Changes for newlib 4.4.0 snapshot 2023-12-31 12:00:18 -05:00
sys.tex Don't include stdio64 functions in reentrant syscalls menu when not bulding stdio64. 2015-08-03 09:54:33 +01:00