diff --git a/components/files/openfile.cpp b/components/files/openfile.cpp index 2ab4409017..6eb0ee51c8 100644 --- a/components/files/openfile.cpp +++ b/components/files/openfile.cpp @@ -3,20 +3,11 @@ #include #include -#if defined(_WIN32) || defined(__WINDOWS__) -#include -#endif - namespace Files { std::unique_ptr openBinaryInputFileStream(const std::filesystem::path &path) { -#if defined(_WIN32) || defined(__WINDOWS__) - std::wstring wpath = boost::locale::conv::utf_to_utf(path); - auto stream = std::make_unique(wpath, std::ios::binary); -#else auto stream = std::make_unique(path, std::ios::binary); -#endif if (!stream->is_open()) throw std::runtime_error("Failed to open '" + path.string() + "' for reading: " + std::strerror(errno)); //TODO(Project579): This will probably break in windows with unicode paths stream->exceptions(std::ios::badbit);