From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4FBA0385AE5F; Sat, 16 Dec 2023 23:34:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4FBA0385AE5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702769652; bh=w/OMgIoI/mL8c/+kj0Txq6RiviUFFJ6BwIvXKeoPYwQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gZj0SWF6ynr5M8NYBzgBkjGZ2u1wm2wWaIJzoDZ8Bsk4cbEj9WJ+ma+tq77r1Zr44 FCGks77DrlnO39Vuqm2FW9DyzKE9pLoaL0iYFPInqsPk+LRJuQK/ISlx2KdPGpLcze gmrxf3vZxL9hdomqQ7JS2d3cusd65ZGJZIpjL61c= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/109162] C++23 improvements to std::format Date: Sat, 16 Dec 2023 23:34:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.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://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109162 --- Comment #3 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #0) > https://wg21.link/P2419R2 localized chrono formatting (also p2372r3) I think this this requires using nl_langinfo_l(CODESET, loc) to find out if= the locale uses UTF-8, and then use iconv to convert to UTF-8 if it doesn't. But I'm not sure how we do that for an arbitrary std::locale which doesn't have= an associated C locale, and we can't get its locale_t identifier anyway.=