https://bugs.llvm.org/show_bug.cgi?id=38419

            Bug ID: 38419
           Summary: std::filesystem::path::native() should return an
                    std::wstring on Windows
           Product: libc++
           Version: 7.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

As the native path format on Windows is arguably UTF-16 (and MSVC's standard
lib does this as well, as does Boost.Filesystem, not sure about libstdc++),
std::filesystem::path should obey that choice.

Most efficient solution would be to let path use wchar_t throughout, but an
acceptable solution would be to convert to the correct type on a call to
native().

This ensures compatibility between code written with MSVC compiled against
libc++.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to