unicode error in Boardie

Issue #422 resolved
Wenjie Wu created an issue

Connect esp32 board, works well

this is the test project

Comments (8)

  1. John Maloney repo owner

    FYI, the underlying cause of this bug is an explicit ambiguity in the C language spec.

    The C language does not specify whether an 8-bit char datatype is signed or unsigned; that choice is left up to the implementation. Thus, the C code for primUnicodeAt() had different behavior depending on whether it was compiled for a microcontroller or for Boardie.

    I've been using C for decades but I did not know about this particular design flaw...

  2. Wenjie Wu reporter

    Thanks for the explanation and your work on microblocks, we happily program the hardware bypassing C 😄

  3. Log in to comment