summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/ExpressionParser.cpp
diff options
context:
space:
mode:
authorGabriel Corona <gabriel.corona@enst-bretagne.fr>2015-02-02 00:45:37 +0100
committerGabriel Corona <gabriel.corona@enst-bretagne.fr>2015-02-04 17:49:22 +0100
commit266d50c8112dabc7a24bd290670e93bfef5b12f8 (patch)
tree2ae2353c232142c8f12436fb17a289ecc170e280 /Source/Core/InputCommon/ControllerInterface/ExpressionParser.cpp
parent3c475b91ea5c4baa13b1339c3d2921938e8a3be9 (diff)
Use the C locale for non-Windows CharArrayFromFormatV() and StringFromFormat()
The Windows implementations of CharArrayFromFormatV() and StringFromFormat() use the "C"/".1252" locale instead of the user locale (using _vsnprintf_l). On non-Windows, the user locale was used. This leads to bugs on non-Windows: the Overclock parameter was serialised with the user locale ("0,279322" in some locale) and was interpreted back as "0" (because the C locale is used for parsing the string). Make non-Windows CharArrayFromFormatV() and StringFromFormat() consistent with their Windows counterpart. The locale code is not enables for Android:: uselocale is only available since API 21 and API 21 only supports C and C.UTF-8.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/ExpressionParser.cpp')
0 files changed, 0 insertions, 0 deletions