summaryrefslogtreecommitdiff
path: root/Source/Core/Common/StringUtil.cpp
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2015-12-02 15:22:42 +0100
committerMarkus Wick <degasus@users.noreply.github.com>2015-12-02 15:22:42 +0100
commit3ed29cce0cbc60220bdd47a21c4739baa8d16f11 (patch)
tree8a213d21f17ded99b42043192994ea73b162a1dc /Source/Core/Common/StringUtil.cpp
parent1c95cd5ad584ddc9de3c0b9dbb47fe7bdaa747db (diff)
parente9b3f1154d422e2239be1faa3a719cf8f8849f2a (diff)
Merge pull request #2733 from AdmiralCurtiss/string-from-float
IniFile: Fix floating point number locale issues.
Diffstat (limited to 'Source/Core/Common/StringUtil.cpp')
-rw-r--r--Source/Core/Common/StringUtil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp
index 9fdbd9f801..213dba2b08 100644
--- a/Source/Core/Common/StringUtil.cpp
+++ b/Source/Core/Common/StringUtil.cpp
@@ -82,10 +82,10 @@ bool CharArrayFromFormatV(char* out, int outsize, const char* format, va_list ar
// multibyte handling is required as we can simply assume that no '%' char
// will be present in the middle of a multibyte sequence.
//
- // This is why we lookup an ANSI (cp1252) locale here and use _vsnprintf_l.
+ // This is why we look up the default C locale here and use _vsnprintf_l.
static _locale_t c_locale = nullptr;
if (!c_locale)
- c_locale = _create_locale(LC_ALL, ".1252");
+ c_locale = _create_locale(LC_ALL, "C");
writtenCount = _vsnprintf_l(out, outsize, format, c_locale, args);
#else
#if !defined(ANDROID)