From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 628243857028; Wed, 12 Jul 2023 20:04:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 628243857028 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689192281; bh=D0V9VQ4EaAxUHEgDlkdx/UjHys8NUuBDyQhZng0Roxk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=U87ZoLwDDY1IdJWRIO3My/aSiqLaWkKrAUxwhT2N+/iZFSicWuS1lbCWqsxFdDriu vrlZFHmhuLQHsuHhjp7qLCPJDUdFJtLSIHiXPtKPw1K6sjCN1O76n18MDQZXRK6wpG 9JWxOz1IbUyDIdWzIerNITGY/khfcNjv4874sT2Q= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/95048] [11 Regression] wstring-constructor of std::filesystem::path throws for non-ASCII characters Date: Wed, 12 Jul 2023 20:04:39 +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: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 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=3D95048 --- Comment #27 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:d6384ad1a9ab7ea46990a7ed1299d5a2be4acece commit r14-2478-gd6384ad1a9ab7ea46990a7ed1299d5a2be4acece Author: Jonathan Wakely Date: Wed Jul 12 14:40:19 2023 +0100 libstdc++: Check conversion from filesystem::path to wide strings [PR95= 048] The testcase added for this bug only checks conversion from wide strings on construction, but the fix also covered conversion to wide stings via path::wstring(). Add checks for that, and u16string() and u32string(). libstdc++-v3/ChangeLog: PR libstdc++/95048 * testsuite/27_io/filesystem/path/construct/95048.cc: Check conversions to wide strings. * testsuite/experimental/filesystem/path/construct/95048.cc: Likewise.=