summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorSoren Jorvang <soren.jorvang@gmail.com>2011-02-19 22:06:29 +0000
committerSoren Jorvang <soren.jorvang@gmail.com>2011-02-19 22:06:29 +0000
commit1795da46abff42d9ee648f0dcbb24b976d179f98 (patch)
tree827daf5363378b4020b415b4a95d15bd668362b4 /Source/Core
parent9a9909a4d81554d73c6a8b383f28b6f63a854220 (diff)
std::locale("") seems to be broken not only on OS X, but also
on FreeBSD and Linux when building with clang. I think it would be best to only use wxWidgets for localization. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7207 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Common/Src/StringUtil.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Common/Src/StringUtil.h b/Source/Core/Common/Src/StringUtil.h
index d814974677..f81026f894 100644
--- a/Source/Core/Common/Src/StringUtil.h
+++ b/Source/Core/Common/Src/StringUtil.h
@@ -51,9 +51,9 @@ template <typename I>
std::string ThousandSeparate(I value, int spaces = 0)
{
std::ostringstream oss;
-#ifdef __APPLE__
- oss.imbue(std::locale());
-#else
+
+// std::locale("") seems to be broken on many platforms
+#if defined _WIN32 || (defined __linux__ && !defined __clang__)
oss.imbue(std::locale(""));
#endif
oss << std::setw(spaces) << value;