• src/conio/cterm_cterm.c src/sbbs3/ars.c baja.c chat.cpp con_out.cpp do

    From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Mon Nov 23 22:33:27 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/e495edac3dbed329fca1df60
    Modified Files:
    src/conio/cterm_cterm.c src/sbbs3/ars.c baja.c chat.cpp con_out.cpp download.cpp echocfg.c filedat.c fmsgdump.c ftpsrvr.cpp src/sbbs3/gtkmonitor/events.c util_funcs.c src/sbbs3/js_global.cpp js_user.cpp jsexec.cpp load_cfg.c mailsrvr.cpp makeuser.c msgtoqwk.cpp pktdump.c prntfile.cpp qwknodes.c sbbscon.c sbbsecho.c src/sbbs3/scfg/scfg.c src/sbbs3/scfglib2.c sexyz.c smbutil.c str.cpp str_util.c src/sbbs3/uedit/uedit.c src/sbbs3/umonitor/umonitor.c src/sbbs3/upgrade_to_v319.c upload.cpp userdat.c websrvr.cpp writemsg.cpp xtrn.cpp src/uifc/uifc32.c uifctest.c uifcx.c
    Log Message:
    Use TO_UPPERCASE()/TO_LOWERCASE() for char arguments in sbbs3, uifc, conio

    toupper() and tolower() are defined only for unsigned char values and EOF.
    A plain char holding a byte of 0x80 or more is negative where char is
    signed: NetBSD crashes on it, MSVC debug builds assert, and elsewhere the result is whatever the table holds at that index. ff50c3b984 (2026-11-20)
    added the casting macros to gen_defs.h and converted xpdev; this converts
    the remaining calls that take char data: user names and passwords in
    userdat.c, Ctrl-A codes in str_util.c, ARS strings, command-line letters,
    and server command parsing.

    Calls whose argument is an int key code (inkey(), getkey(), xp_getch(), getchar(), SDL keysyms) are left alone: casting would truncate extended
    keys above 255 and turn EOF into 255.

    The macros return 128-255 for a high byte where the old calls returned
    the negative char value, so the pager's quit-key test in printfile() now converts both sides; quit_key() returns a signed char.

    Fixes #1373

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net