From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C5CAF3858418; Sat, 3 Sep 2022 18:56:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C5CAF3858418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1662231365; bh=v3K94Oy/McFdiAtfWxBzdXpYBLlKKBnqRJ/bwdmAquo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lYfcDvqeI5dg8BZQYRCYj6F+OL+5N7XpmAWnl+Unw3wusT0LxEKgrgu73EFJtgnk9 Fnuqvuz/Ca08LHhVLov6hsgMzN/I8GTz8dGRvp0niEd60/CcVuJ/4oJFyylugz9N6O nb4SzTiMVgfNJD+locdIut4wKVSyjuOuBTOmYZf4= From: "patrick at monnerat dot net" To: gdb-prs@sourceware.org Subject: [Bug cli/29315] Completion warning: could not convert ... from the host encoding (ANSI_X3.4-1968) to UTF-32 Date: Sat, 03 Sep 2022 18:56:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: cli X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: patrick at monnerat dot net 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: cc 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29315 Patrick Monnerat changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |patrick at monnerat dot ne= t, | |tromey at sourceware dot o= rg --- Comment #1 from Patrick Monnerat --- I have a similar problem though not exactly the same: It occurs in mingw gdb compiled under dygwin. I've investigated a bit and found it appeared in commit https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommit;f=3Dgdb/ada-lan= g.c;h=3D315e4ebb4b7ef01da2f5c419edc74f39a0122d20 that tries to convert to a 32-bit character set. In the mingw context, current code conditionals cause libiconv to be replac= ed by a minimal phony_iconv that does not support such conversions. These conditionals were implemented to make sure libiconv implements UTF32 and fa= il on mingw because the wchar_t is 16-bit wide and the installed libiconv is n= ot the Bruno Haible's one. See PHONY_ICONV in gdb/gdb_wchar.h. As there is no safe way to determine if UTF32 is supported in cross-compilations, and since all libiconv implementations younger than ~10 years have it, I'll be tempted to assume it's always present and drop some conditionals. @maciej: is your context similar (no Haible's libiconv or too old and no ISO-10646 support) ? @tom: as you're the commit's author, what is your opinion ? --=20 You are receiving this mail because: You are on the CC list for the bug.=