Skip to content

Commit

Permalink
Merge pull request #1871 from FioraAeterna/fixlocale
Browse files Browse the repository at this point in the history
StringUtils: use C locale instead of .1252
  • Loading branch information
degasus committed Jan 11, 2015
2 parents 394257f + 5b825e9 commit 763f073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Common/StringUtil.h
Expand Up @@ -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)
Expand Down

0 comments on commit 763f073

Please sign in to comment.