|
|
@@ -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<char> buffer(std::istreambuf_iterator<char>(ifs), {});
|
|
|
ifs.close();
|
|
|
return Bytes(std::move(buffer));
|