From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6EBFA3858D20; Wed, 30 Aug 2023 19:25:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6EBFA3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1693423550; bh=gn8a2ZvODQw9cuh8YfmPbMOv+Q+u0WK/VFnqlXgnFBA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qQGSYSrC/idiGzS6Vgfy2DqU7B8f1Mlvf0VtwrAqptuEz1WoZmLKH6aHiNz+O/c3W /Bn3c8SABmkOTmcnlS3zqIEEJUcEAwq4JRSIbRAeBeZ7pXZCC1HKsgyf2kg3cZDeqn +f7Plw2rPjwg8HT9bnwK/ZCMaNJ7m5yEt6mr6TM0= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/111244] std::filesystem::path encoding mismatches locale on Windows Date: Wed, 30 Aug 2023 19:25:50 +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.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also 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=3D111244 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D108865 --- Comment #1 from Andrew Pinski --- For windows it is a bit more complex, than that even. > This is caused by std::filesystem::path interpreting the input as UTF-8. > On Windows, it's not; it must be decoded using the locale codec.=20 Except the code page could be tuned via a manifest file even. For an example GCC embeds a manifest into its own compiler to work around t= his issue and just use UTF8 always. So ...=