]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: regex: fix faulty check for valid range expression
authorCorinna Vinschen <corinna@vinschen.de>
Thu, 16 Mar 2023 20:09:53 +0000 (21:09 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 20 Mar 2023 11:58:03 +0000 (12:58 +0100)
commit59241913330c15d25ea569f1309af1c746dc07fa
tree3cced3dbb99a64e3a8b593d7ebb254a0c33f8e73
parente914374383a72810bb5d20ad8428843d70df50e1
Cygwin: regex: fix faulty check for valid range expression

Except for the "C" or "POSIX" locale, checking for start <= finish
is always wrong.  Range start must be <= range finish in terms of the
locale's collating order.  So make sure to call always wcscoll(), even
in the "C"/"POSIX" locale, which makes wcscoll equivalent to wcscmp
anyway.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/regex/regcomp.c
This page took 0.028288 seconds and 5 git commands to generate.