diff --git a/src/io.h b/src/io.h index 503f2efa..4ce76259 100644 --- a/src/io.h +++ b/src/io.h @@ -15,7 +15,7 @@ inline Bytes _read_file_cwd(const Str& name){ std::filesystem::path path(name.sv()); bool exists = std::filesystem::exists(path); if(!exists) return Bytes(); - std::ifstream ifs(path); + std::ifstream ifs(path, std::ios::binary); std::vector buffer(std::istreambuf_iterator(ifs), {}); ifs.close(); return Bytes(std::move(buffer));