libstdc++: Ensure root-dir converted to forward slash (PR93244)
authorJonathan Wakely <jwakely@redhat.com>
Mon, 13 Jan 2020 10:02:39 +0000 (10:02 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 13 Jan 2020 13:22:48 +0000 (13:22 +0000)
commitfe7cc34fd5186cce3771e2bce2f4aacb81b9058c
treedbae02d79d7687a0835641f25dd1c7cb15032368
parente4379a931d140a71b36eaecceace319837fda321
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.
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fs_path.h
libstdc++-v3/testsuite/27_io/filesystem/path/generic/generic_string.cc
libstdc++-v3/testsuite/27_io/filesystem/path/generic/utf.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/filesystem/path/generic/wchar_t.cc [new file with mode: 0644]