Use std::locale() on OS X and std::locale("") elsewhere.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6894 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang 2011-01-22 03:57:03 +00:00
parent 392a589092
commit fecf10173b
1 changed files with 4 additions and 0 deletions

View File

@ -52,7 +52,11 @@ template <typename I>
std::string ThousandSeparate(I value, int spaces = 0) std::string ThousandSeparate(I value, int spaces = 0)
{ {
std::ostringstream oss; std::ostringstream oss;
#ifdef __APPLE__
oss.imbue(std::locale()); oss.imbue(std::locale());
#else
oss.imbue(std::locale(""));
#endif
oss << std::setw(spaces) << value; oss << std::setw(spaces) << value;
return oss.str(); return oss.str();