• src/encode/cp437_unicode_tbl.c cp437_unicode_tbl.h objects.mk utf8.c utf8.h

    From rswindell@VERT to CVS commit on Saturday, July 06, 2019 07:39:40
    src/encode cp437_unicode_tbl.c NONE 1.1 cp437_unicode_tbl.h NONE 1.1 objects.mk 1.3 1.4 utf8.c NONE 1.1 utf8.h NONE 1.1
    Update of /cvsroot/sbbs/src/encode
    In directory cvs:/tmp/cvs-serv25274

    Modified Files:
    objects.mk
    Added Files:
    cp437_unicode_tbl.c cp437_unicode_tbl.h utf8.c utf8.h
    Log Message:
    Decided to use UNICODE code points rather than UTF-8 sequences for faster UNICODE -> CP437 conversions (no string/memory compares needed), so cp437_utf8_tbl.* is being replaced by cp437_unicode_tbl.*.

    Added utf8 module which includes:
    - utf8_normalize_str() - normalize US-ASCIIZ string, from mailsrvr.c
    - utf8_putc() - encoder / length calculator
    - utf8_getc() - decoder

    The latter 2 were swiped from OpenSSL's a_utf8.c.



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