From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Yk8BInhIKGq8GD4AWB0awg (envelope-from ) for ; Tue, 09 Jun 2026 13:08:08 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=r9pmOER4; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 722111E0A3; Tue, 09 Jun 2026 13:08:08 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id D3E0A1E070 for ; Tue, 09 Jun 2026 13:08:07 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6C7834B7A1DC for ; Tue, 9 Jun 2026 17:08:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C7834B7A1DC Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=r9pmOER4 Received: from omta038.useast.a.cloudfilter.net (omta038.useast.a.cloudfilter.net [44.202.169.37]) by sourceware.org (Postfix) with ESMTPS id 0F66D4BA2E11 for ; Tue, 9 Jun 2026 17:07:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0F66D4BA2E11 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0F66D4BA2E11 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=44.202.169.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1781024863; cv=none; b=sFi+SsYcpQfRxx/CX1+yBwj7ELEF4KGRscWs3MtK10FhujRHIiur2NKzbYvLgWBChidHADrc2Y/PCb+lGsqHCHKSGFo43jgACcQ89dB0FA6KhAqANMhm2wBybcX/aN4MuiSM+Q+NScu8ZNg3pc7vWwEmMZEYSoYK1Yj3ON3JqvE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1781024863; c=relaxed/simple; bh=vsoQCIbbvdR2KUgYMYYyOFOKyR6uJTHaAYCC3CxvZGY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Q06yCzQG+flSPAIBSjySLoia7ie28iFkv5A41y331fuFYdwtP2LJHX5kYaNNrM7M7QUMxcCi7BF7P/TPwb7vRemA/I32QfWgg1THHJuCUfphbcU6orEzuT0dZhyoujMlUW4oAlb4JUizemnHBd06kUtapw66y058opyKjl+/66w= ARC-Authentication-Results: i=1; sourceware.org; dkim=policy (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=r9pmOER4 reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0F66D4BA2E11 Received: from eig-obgw-5001b.ext.cloudfilter.net ([10.0.29.181]) by cmsmtp with ESMTPS id WzfIwRm9lKSRRWzvRwqszR; Tue, 09 Jun 2026 17:07:41 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id WzvPwkSXb5zk0WzvPwNN6N; Tue, 09 Jun 2026 17:07:39 +0000 X-Authority-Analysis: v=2.4 cv=GPEIEvNK c=1 sm=1 tr=0 ts=6a28485d a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=FelO9ux0wxsA:10 a=ItBw4LHWJt0A:10 a=8AHkEIZyAAAA:8 a=c75vRNI1dp6yhrQwKewA:9 a=D_G8YTvtwwUA:10 a=0lgtpPvCYYIA:10 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=R0fHMRjaefg6g4RVQds6f6mCKuClz6t4Q+NK4+6pj9U=; b=r9pmOER4GrCuRCdzTf4Zt8lvtH KqxISyuQpraNheYliPSYBMW3AT2t9pRKNHCCyTRcA/fUM8i8P0WbII/lmuZc4ibT5iskK4MBrg5z9 NnGVQlkEPVzjXWlLEE6TreSLx; Received: from 75-166-225-82.hlrn.qwest.net ([75.166.225.82]:51366 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.2) (envelope-from ) id 1wWzvP-000000047Vb-0Dou; Tue, 09 Jun 2026 11:07:39 -0600 From: Tom Tromey To: Tom de Vries Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 2/3] [gdb/contrib] Fix UnicodeDecodeError in dwarf-to-dwarf-assembler.py In-Reply-To: <20260608125420.2318026-3-tdevries@suse.de> (Tom de Vries's message of "Mon, 8 Jun 2026 14:54:19 +0200") References: <20260608125420.2318026-1-tdevries@suse.de> <20260608125420.2318026-3-tdevries@suse.de> X-Attribution: Tom Date: Tue, 09 Jun 2026 11:07:37 -0600 Message-ID: <87wlw7ej6u.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.225.82 X-Source-L: No X-Exim-ID: 1wWzvP-000000047Vb-0Dou X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-225-82.hlrn.qwest.net (bapiya) [75.166.225.82]:51366 X-Source-Auth: tom+tromey.com X-Email-Count: 8 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfDzRiA9F7xa2PJhLYifqqyx6/lJOCaGFkuis5AHdo4Jn5UORG54p8izY2Qd+iEMzrM2hA7PM1tO4i+V0RKguE6w9rb88dIcwKQZSJHiu8uVTA7SrogcT fWCS2fwPVGNUZhtYmeQPUBVHVN/oyM0MAXkW01LwazCSFwUV3sOlP1xd3hXSsbhWRv9TfRVhgux9oUlorjYLyZ9iSL7YDCb2ExM= 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~public-inbox=simark.ca@sourceware.org >>>>> "Tom" == Tom de Vries writes: Tom> + return self._format_str(self.value.decode("ascii")) Probably we should decode using UTF-8 here, maybe with some fallback setting, like errors='replace', see https://docs.python.org/3/library/stdtypes.html#bytes.decode The choice of encoding is a bit tricky since technically DWARF only uses Unicode when some other flag is seen. However I think it's normally fine and expected. Tom