diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-11-30 01:03:36 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-11-30 01:03:36 +0000 |
commit | 3eda32cb9b534f89f37c7155cdd8be2d9a5de7a4 (patch) | |
tree | db412b30ab370c30397b51579c4e9e7bdfc21116 /gcc | |
parent | aa80d0650ce612d88a62d072b63c2523d547fca8 (diff) | |
download | gcc-3eda32cb9b534f89f37c7155cdd8be2d9a5de7a4.zip gcc-3eda32cb9b534f89f37c7155cdd8be2d9a5de7a4.tar.gz gcc-3eda32cb9b534f89f37c7155cdd8be2d9a5de7a4.tar.bz2 |
libstdc++: Fix experimental::filesystem::u8path(const Source&) for Windows
This function failed to compile when called with a std::string.
Also, constructing a path with a char8_t string did not correctly treat
the string as already UTF-8 encoded.
* include/bits/fs_path.h (u8path(InputIterator, InputIterator))
(u8path(const Source&)) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Simplify
conditions.
* include/experimental/bits/fs_path.h [_GLIBCXX_FILESYSTEM_IS_WINDOWS]
(__u8path(const Source&, char)): Add overloads for std::string and
types convertible to std::string.
(_Cvt::_S_wconvert): Add a new overload for char8_t strings and use
codecvt_utf8_utf16 to do the correct conversion.
From-SVN: r278869
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions