Add (unsigned char) cast lost in WARNS=4 fixes which break 8bit locales
PR: 35421
This commit is contained in:
parent
875d7f4ce6
commit
4ac9e16668
@ -64,7 +64,7 @@ prn_printable(const char *s)
|
||||
int n;
|
||||
|
||||
for (n = 0; (c = *s) != '\0'; ++s, ++n)
|
||||
if (isprint(c))
|
||||
if (isprint((unsigned char)c))
|
||||
putchar(c);
|
||||
else
|
||||
putchar('?');
|
||||
|
Loading…
Reference in New Issue
Block a user