Pierre Pronchery 5228fe88d0 Avoid compilation warnings from ctype(3) helpers
Characters should be casted as unsigned before use in functions from
<ctype.h>. Otherwise the compiler treats 8-bit characters (eg UTF-8) as
negative values (since it expects signed integers) and they no longer
match the comparison tables. Worse, the character 0xff gets interpreted
as -1 (like EOF). In turn, it helps to explicitly cast the result as a
signed integer, since this is what is expected. Characters in the range
0x80-0xff do keep their original values.

See the manual page for ctype(3) for more details (eg from NetBSD)
2018-06-12 14:01:22 -04:00
..
2016-01-01 02:04:24 +00:00
2016-01-01 02:04:24 +00:00
2016-01-01 02:04:24 +00:00
2016-01-01 02:04:24 +00:00
2016-01-01 02:04:24 +00:00
2016-01-01 02:04:24 +00:00
2016-01-01 02:04:24 +00:00
2016-01-17 13:40:07 -08:00
2016-01-01 02:04:24 +00:00
2016-01-01 02:04:24 +00:00
2016-01-02 20:18:12 -06:00
2016-01-01 02:04:24 +00:00
2016-01-02 20:18:12 -06:00
2016-01-01 02:04:24 +00:00
2016-01-01 02:04:24 +00:00
2016-01-01 02:04:24 +00:00
2016-01-01 02:04:24 +00:00