From 1795da46abff42d9ee648f0dcbb24b976d179f98 Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Sat, 19 Feb 2011 22:06:29 +0000 Subject: [PATCH] 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 --- Source/Core/Common/Src/StringUtil.h | 6 +++--- 1 file 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 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;