Skip to content

Commit

Permalink
[win32] Set thread local locale for started threads
Browse files Browse the repository at this point in the history
  • Loading branch information
Karlson2k committed Feb 18, 2015
1 parent d26c9bc commit 804e16d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xbmc/threads/platform/win/ThreadImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <windows.h>
#include <process.h>
#include "threads/platform/win/Win32Exception.h"
#include "../../win32/WIN32Util.h"

void CThread::SpawnThread(unsigned stacksize)
{
Expand Down Expand Up @@ -73,6 +74,8 @@ void CThread::SetThreadInfo()
{
}

CWIN32Util::SetThreadLocalLocale(true); // avoid crashing with setlocale(), see https://connect.microsoft.com/VisualStudio/feedback/details/794122

win32_exception::install_handler();
}

Expand Down

0 comments on commit 804e16d

Please sign in to comment.