From 5b825e909199b47045d3f37c1fa0f70d8bfe370f Mon Sep 17 00:00:00 2001 From: Fiora Date: Sun, 11 Jan 2015 00:15:57 -0800 Subject: [PATCH] StringUtils: use C locale instead of .1252 Fixes regression on Linux. --- Source/Core/Common/StringUtil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Common/StringUtil.h b/Source/Core/Common/StringUtil.h index d38a5afa07..90df35189a 100644 --- a/Source/Core/Common/StringUtil.h +++ b/Source/Core/Common/StringUtil.h @@ -65,7 +65,7 @@ static bool TryParse(const std::string &str, N *const output) { std::istringstream iss(str); // is this right? not doing this breaks reading floats on locales that use different decimal separators - iss.imbue(std::locale(".1252")); + iss.imbue(std::locale("C")); N tmp = 0; if (iss >> tmp)