]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: m32c: use UTF-8 encoding
authorMike Frysinger <vapier@gentoo.org>
Tue, 5 Dec 2023 12:48:21 +0000 (07:48 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 5 Dec 2023 12:50:56 +0000 (07:50 -0500)
We only support UTF-8 nowadays, so stop using ISO-8859-1.

Maybe we should delete this logic entirely, but for now,
do the bare min conversion to keep it compiling.

sim/m32c/mem.c

index b439fb36a7cb402135391af9b00a0aafd4e1cd10..1ca34726d1929d63901bfe0fdd733ec246106b63 100644 (file)
@@ -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)
          {