Characters 128-255 (typically those from single byte locales) will be negative for char type,- cast GETNEXT to unsigned where it is being promoted to int to prevent
sign-extension (really it would have been better for PEEK*() and
GETNEXT() to return unsigned char; and character&BACKSL would incorrectly produce 'true';this would have removed a ton of
(uch) casts, cast the character we want to test to unsigned char.but it is too intrusive for now).
- fix an isalpha that should have been iswalpha
While here, use proper iswalpha() for wint_t argument.
PR: 264275, 274032
Fixes: adeebf4cd47c ("regex(3): Interpret many escaped ordinary...")Obtained from: NetBSD