• src/xpdev/unicode.c

    From rswindell@VERT to CVS commit on Tue Jul 9 13:40:54 2019
    src/xpdev unicode.c 1.4 1.5
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/home/rswindell/sbbs/src/xpdev

    Modified Files:
    unicode.c
    Log Message:
    Fix a bunch of enumeration value '...' not handled in switch GCC warnings
    in unicode_width().



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tue Jul 9 13:51:34 2019
    src/xpdev unicode.c 1.5 1.6
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv26507

    Modified Files:
    unicode.c
    Log Message:
    Address more GCC warnings unicode_to_cp437():
    enumeration value '...' not handled in switch


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tue Jul 9 16:38:16 2019
    src/xpdev unicode.c 1.7 1.8
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv32638

    Modified Files:
    unicode.c
    Log Message:
    A few more code point to CP437 char mappings.
    unicode_width() now correctly returns 2 for the CJK and other code points that are typically displayed in 2 columns with non-proportional fonts.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wed Jul 10 01:21:36 2019
    src/xpdev unicode.c 1.8 1.9
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv16034

    Modified Files:
    unicode.c
    Log Message:
    Fix Borland C++Builder 6 build error:
    Expression syntax in function unicode_to_cp437
    :-(


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thu Aug 29 20:37:51 2019
    src/xpdev unicode.c 1.12 1.13
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv24194

    Modified Files:
    unicode.c
    Log Message:
    Map both Unicode BLACK SQUARE and HALFWIDTH BLACK SQUARE to CP437 0xFE when translating from Unicode to CP437.
    Use the UNICODE_HOUSE macro instead of the codepoint hex-value.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thu Aug 29 23:49:58 2019
    src/xpdev unicode.c 1.13 1.14
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv23694

    Modified Files:
    unicode.c
    Log Message:
    Use the Unicode lower/upper half block enums.
    Added more "black square" -> CP437 0xFE mappings.
    Added Unicode FULL/HALF block -> CP437 mappings.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Fri Aug 30 00:04:53 2019
    src/xpdev unicode.c 1.14 1.15
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/home/rswindell/sbbs/src/xpdev

    Modified Files:
    unicode.c
    Log Message:
    Eliminate duplicate case statements added in previous commit (some of these were already mapped using numeric constants).



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Sat Sep 5 10:30:04 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/38a2e67b603ea03d16557d98
    Modified Files:
    src/xpdev/unicode.c
    Log Message:
    Translate the UNICODE MACRON character to an ASCII tilde (~)
    So we can display ~\_()_/~ in ASCII. It's really important.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Tue Feb 6 12:35:50 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/e8ab27dc4f5b57fb2ae66687
    Modified Files:
    src/xpdev/unicode.c
    Log Message:
    unicode_to_cp437() returns a char, not an enum unicode_codepoint

    No functional change.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thu Feb 15 23:02:56 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/7ce041123dcaf87cd138209c
    Modified Files:
    src/xpdev/unicode.c
    Log Message:
    Fix GCC warning about enum cases not covered in switch

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Thu Feb 13 13:12:13 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/bcdc57167cc4af52a69f3e9e
    Modified Files:
    src/xpdev/unicode.c
    Log Message:
    Convert UNICODE_VIEWDATA_SQUARE to # for CP437.

    Since we do Mode7

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Wed Feb 19 21:46:43 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/7a220e78f18c03f187e0766e
    Modified Files:
    src/xpdev/unicode.c
    Log Message:
    CP437 0x7C is UNICODE_BROKEN_BAR (U+00A6)

    Contrary to pouplar belief CP437 does not encode US-ASCII.
    US-ASCII has UNICODE_VERTICAL_LINE (U+007C) there (which does match
    Unicode)

    Aren't you glad your C compiler didn't use CP437?
    if (x ??!??! y) is so much uglier than if (x || y)

    Of course, with C99 (or C90 with the 1995 ammendment), we would have
    seen a lot of iso646.h and the use of the or, bitor, and or_eq macros,
    and maybe that would have gotten that whole list of 11 macros promoted
    to keywords eventually (Likely in C23) since it's hard to eat just one
    peanut.

    Of course, that's all alternate history... it's unlikely that any
    compiler vendor would actually care, and | and | (or | and ¨ for those
    using CP437) would be "the same".

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Wed Feb 19 22:47:08 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/469ebb1efa390e2b1e5a7464
    Modified Files:
    src/xpdev/unicode.c
    Log Message:
    Add explicit | to | mapping.

    It's not clear exactly what will happen if I don't, so add it just
    in case.

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