https://gitlab.synchro.net/main/sbbs/-/commit/9f058a335288b3428af3ce4f
Modified Files:
src/sbbs3/str_util.c
Log Message:
str_is_ascii(): don't depend on plain char being signed
The test for a non-ASCII byte was "*p < 0", which is never true where
plain char is unsigned (e.g. Linux on ARM), so every string was reported
as ASCII there. Compare the byte as unsigned instead.
This is what failed exec/tests/mailbox/mailsig.js on the raspberrypi-arm64
CI runner: mailsig.js saw a CP437 signature as ASCII and skipped its
conversion to UTF-8. The JS str_is_ascii() function and every C caller
were affected on such platforms.
The signed comparison dates from 1340f563c47 (2019-07-08).
Co-Authored-By: Claude Fable 5.2 <
noreply@anthropic.com>