From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 074E43857426; Tue, 31 May 2022 09:24:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 074E43857426 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug testsuite/29202] [gdb/rust] Running selftest rust-lex. Self test failed: Converting character sets: Invalid argument. Date: Tue, 31 May 2022 09:24:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: testsuite X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2022 09:24:05 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29202 --- Comment #2 from Tom de Vries --- Hmm, in ada-lang.c we have: ... try { convert_between_encodings (host_charset (), HOST_UTF32, (const gdb_byte *) name.data (), name.length (), 1, &storage, translit_none); } catch (const gdb_exception &) { if (throw_on_error) throw; static bool warned =3D false; /* Converting to UTF-32 shouldn't fail, so if it doesn't, we=20= =20=20=20=20=20=20=20=20=20 might like to know why. */ if (!warned) { { warned =3D true; warning (_("could not convert '%s' from the host encoding (%s= ) to UTF-32.\n" "This normally should not happen, please file a bug report."), gdb::to_string (name).c_str (), host_charset ()); } ... I suppose we could use something similar. --=20 You are receiving this mail because: You are on the CC list for the bug.=