From 98e89c932920bea4411ca43f6eaab27b51512781 Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Sun, 19 Dec 2010 16:11:55 +0000 Subject: [PATCH] OS X std::locale only supports the "C" locale and will give an exception on any other, including "" when a different one is specified through the POSIX locale environment variables. This is not normally a problem since these variables are stripped out from the environment when an application is launched by the Finder. This is not the case when running the binary directly from the command line, such as when debugging. I have temporarily disabled the use of std::locale("") on OS X while I try to come up with a better solution. Fixes issue 3598. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6615 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/StringUtil.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/Common/Src/StringUtil.h b/Source/Core/Common/Src/StringUtil.h index e3502eaa67..913a06030e 100644 --- a/Source/Core/Common/Src/StringUtil.h +++ b/Source/Core/Common/Src/StringUtil.h @@ -52,7 +52,9 @@ template std::string ThousandSeparate(I value, int spaces = 0) { std::ostringstream oss; +#ifndef __APPLE__ // XXX oss.imbue(std::locale("")); +#endif oss << std::setw(spaces) << value; return oss.str();