summaryrefslogtreecommitdiff
path: root/Source/Core/Common/StringUtil.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2015-07-11 16:21:10 +0200
committerAdmiral H. Curtiss <pikachu025@gmail.com>2015-07-11 16:30:32 +0200
commita48f2add6829fbcef812a9f44dd7363088cbaa30 (patch)
tree0cba1cd7cdffc72921b224cffdf9cacdd3060e18 /Source/Core/Common/StringUtil.cpp
parentc70f3f4b451948e62ca5006b2977b493daa3616e (diff)
StringUtil: Always use the default C locale for StringFromFormat() instead of a system-specific one.
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 903131a5d3..188016f0ac 100644
--- a/Source/Core/Common/StringUtil.cpp
+++ b/Source/Core/Common/StringUtil.cpp
@@ -80,10 +80,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)