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
This commit is contained in:
Soren Jorvang 2011-02-19 22:06:29 +00:00
parent 9a9909a4d8
commit 1795da46ab
1 changed files with 3 additions and 3 deletions

View File

@ -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;