Fix UB (signed char passed to <cctype> function)


Passing char to a <cctype> function is UB for characters that are outside the range [0...255, EOF].

You have to cast chars to uchar so the implicit conversion to int
does not produce negative values.

Amends a6ffce09ce6d4fd39fbb50eb58f7b5d1027f4d60.

Pick-to: 6.6 6.5 6.2 5.15
Change-Id: I597ee3ff87d38c40dbdf794ee07d302da26f520e
Reviewed-by: Mike Krus <mike.krus@kdab.com>
commitcf084d958c1d795fbdc06b6a377ab61d68e0960a
parent6b8adf1f7bdf59b0d3649d463641131dda5abaca
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeFri, 4 Aug 2023 14:57:55 +0000