blueloveTH 2 years ago
parent
commit
724c3f491c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/io.h

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