From 9d8a82e1d9d945d68b17adab1aff34c96aeda003 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Tue, 5 Dec 2017 21:23:35 +0100 Subject: Don't use wrong encoding for paths when opening streams on Windows --- Source/Core/Common/ArmCPUDetect.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/Core/Common/ArmCPUDetect.cpp') diff --git a/Source/Core/Common/ArmCPUDetect.cpp b/Source/Core/Common/ArmCPUDetect.cpp index 382983db6f..9c85835c07 100644 --- a/Source/Core/Common/ArmCPUDetect.cpp +++ b/Source/Core/Common/ArmCPUDetect.cpp @@ -12,6 +12,7 @@ #include "Common/CPUDetect.h" #include "Common/CommonTypes.h" +#include "Common/FileUtil.h" #include "Common/StringUtil.h" const char procfile[] = "/proc/cpuinfo"; @@ -22,7 +23,8 @@ static std::string GetCPUString() std::string cpu_string = "Unknown"; std::string line; - std::ifstream file(procfile); + std::ifstream file; + File::OpenFStream(file, procfile, std::ios_base::in); if (!file) return cpu_string; -- cgit v1.2.3