On Sat, Jun 27, 2026 at 08:41:43AM +0200, Ramiro Aceves wrote:
Just curious, why does xephem work on the RPi4 aarch64 and does not
crash? are not the ctype functions abused the same way?
The default "char" type is "unsigned char" on some architectures and
"signed char" on others. The ctype style issues do not show up on
architectures with "unsigned char" as "char".
The correct way to use ctype functions is to convert the value to
unsigned char before expanding it to int - and that automatically
happens for "unsigned char" architectures (because the types are
identical).
Martin