From 724c3f491c1284284a41893678023004744537b6 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Wed, 26 Apr 2023 12:56:19 +0800 Subject: [PATCH] ... --- src/io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));