mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
StringUtils: use C locale instead of .1252
Fixes regression on Linux.
This commit is contained in:
parent
394257f33b
commit
5b825e9091
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue