[llvm-bugs] [Bug 38419] New: std::filesystem::path::native() should return an std::wstring on Windows

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 2 04:50:27 PDT 2018


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: unassignedclangbugs at nondot.org
          Reporter: vanboxem.ruben at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180802/91d1b2bd/attachment.html>


More information about the llvm-bugs mailing list