mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-09 18:45:40 +00:00
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:
parent
9a9909a4d8
commit
1795da46ab
@ -51,9 +51,9 @@ 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());
|
// std::locale("") seems to be broken on many platforms
|
||||||
#else
|
#if defined _WIN32 || (defined __linux__ && !defined __clang__)
|
||||||
oss.imbue(std::locale(""));
|
oss.imbue(std::locale(""));
|
||||||
#endif
|
#endif
|
||||||
oss << std::setw(spaces) << value;
|
oss << std::setw(spaces) << value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user