From patchwork Tue Dec 5 12:51:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 81409 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3CE6A385C6DA for ; Tue, 5 Dec 2023 12:52:14 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id ACCCC3858426 for ; Tue, 5 Dec 2023 12:51:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ACCCC3858426 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org ACCCC3858426 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:ea4a:1:5054:ff:fec7:86e4 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701780704; cv=none; b=gCSepppPSZlM1gL5q9TbMvKxpZf0P5hgy2fcMS//c+vZ51rHgVlaYJRN4dwg68vdA/hODR90bhjUzTq+o2e6UYIe4xN0Mcswb87qTjx1vbHXStOKvljWLrA6wJ+UMAwI0G471owIGGlVb9np+WlkUVYtx/J3nEKZXHroZZQyoCM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701780704; c=relaxed/simple; bh=v286CHUrcbzOynJba/q35zrqLfePx1NQ5jF5msIMu6c=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=N9eMlyXheqzy7hbidjG6b0bYnps6zUe6Y5QlwOHXxmmn6FxeU0iTfbl61ZhSGmCCyrRvDJI+QJJ6SpC04kNM0JAVF2KL3ObalCyFuN0/5KihglLZ2M2hUJjQ6sGiMrvuKYajQ8jQ3jxXQwqmTp+pI3+uOgXhAdpu3vi2CIdYyOk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 2E3B333BDC5; Tue, 5 Dec 2023 12:51:43 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH/committed] sim: m32c: use UTF-8 encoding Date: Tue, 5 Dec 2023 07:51:38 -0500 Message-ID: <20231205125138.2560-1-vapier@gentoo.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/m32c/mem.c b/sim/m32c/mem.c index b439fb36a7cb..1ca34726d192 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) {