From 577d7f5887c749e87be3e2157fc5851330634468 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sat, 4 May 2019 11:33:43 +1000 Subject: [PATCH] posix: prefer char strings for the time being --- posix/dir.cpp | 2 +- posix/fd.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posix/dir.cpp b/posix/dir.cpp index 3f952271..589487a0 100644 --- a/posix/dir.cpp +++ b/posix/dir.cpp @@ -15,7 +15,7 @@ using cruft::posix::dir; /////////////////////////////////////////////////////////////////////////////// dir::dir (const std::filesystem::path &p): - m_handle (::opendir (p.u8string ().c_str ())) + m_handle (::opendir (p.string ().c_str ())) { if (!m_handle) error::throw_code (); diff --git a/posix/fd.cpp b/posix/fd.cpp index dd304786..dc04de17 100644 --- a/posix/fd.cpp +++ b/posix/fd.cpp @@ -26,7 +26,7 @@ fd::fd (const std::filesystem::path &path, int flags): //----------------------------------------------------------------------------- fd::fd (const std::filesystem::path &path, int flags, mode_t mode): - m_fd (error::try_value (::open (path.u8string ().c_str (), flags, mode))) + m_fd (error::try_value (::open (path.string ().c_str (), flags, mode))) { // You always want binary mode. Always. //