mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 15:31:17 +01:00
Merge pull request #1871 from FioraAeterna/fixlocale
StringUtils: use C locale instead of .1252
This commit is contained in:
commit
763f073bf6
@ -65,7 +65,7 @@ static bool TryParse(const std::string &str, N *const output)
|
|||||||
{
|
{
|
||||||
std::istringstream iss(str);
|
std::istringstream iss(str);
|
||||||
// is this right? not doing this breaks reading floats on locales that use different decimal separators
|
// 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;
|
N tmp = 0;
|
||||||
if (iss >> tmp)
|
if (iss >> tmp)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user