Use std::locale::classic() in parse_float()

pull/234/head
jackun 4 years ago
parent d9a09670d8
commit 441f1d3f3f
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -63,7 +63,7 @@ parse_float(const char *str)
{
float val = 0;
std::stringstream ss(str);
ss.imbue(std::locale("C"));
ss.imbue(std::locale::classic());
ss >> val;
return val;
}

Loading…
Cancel
Save