The led_off array used 0xB7 (Latin-1 middle dot) but it heavily depends on the source code encoding. Directly using 0xB7 here is very dangerous and Clang causes a compiler warning ("-Winvalid-source-encoding"). On the other hand, using '\u00b7' here will assume UTF-8. As a workaround, this commit replaces uses of 0xB7 with '.' (regular ASCII dot). --- sim/m32c/mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/m32c/mem.c b/sim/m32c/mem.c index 5bb9dbf2c29..a412f81b2e9 100644 --- a/sim/m32c/mem.c +++ b/sim/m32c/mem.c @@ -221,7 +221,7 @@ mem_put_byte (int address, unsigned char value) static int old_led = -1; static char *led_on[] = { "\033[31m O ", "\033[32m O ", "\033[34m O " }; - static char *led_off[] = { "\033[0m · ", "\033[0m · ", "\033[0m · " }; + static char *led_off[] = { "\033[0m . ", "\033[0m . ", "\033[0m . " }; int i; if (old_led != value) { -- 2.34.1