[Bug libstdc++/93244] std::filesystem::path::generic_string doesn't convert the first slash on Windows

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 12 08:02:08 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93244

--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Liska <marxin@gcc.gnu.org>:

https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=af213b4c4ca30e55de64f8b1e0bf442df08f3e6d

commit r10-5851-gaf213b4c4ca30e55de64f8b1e0bf442df08f3e6d
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Mon Jan 13 10:02:39 2020 +0000

    libstdc++: Ensure root-dir converted to forward slash (PR93244)

            PR libstdc++/93244
            * include/bits/fs_path.h (path::generic_string<C,A>)
            [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Convert root-dir to
forward-slash.
            * testsuite/27_io/filesystem/path/generic/generic_string.cc: Check
            root-dir is converted to forward slash in generic pathname.
            * testsuite/27_io/filesystem/path/generic/utf.cc: New test.
            * testsuite/27_io/filesystem/path/generic/wchar_t.cc: New test.


More information about the Gcc-bugs mailing list