5 #include "pbd/localeguard.h"
7 // JE - added temporarily, to reduce the delay effects when calling
8 // setlocale() recursively in a Windows GUI thread (we should think
9 // about moving the caller(s) into a dedicated worker thread).
10 std::string PBD::LocaleGuard::current;
12 PBD::LocaleGuard::LocaleGuard (const char* str)
16 old = strdup (setlocale (LC_NUMERIC, NULL));
17 if (strcmp (old, str)) {
18 if (setlocale (LC_NUMERIC, str))
24 PBD::LocaleGuard::~LocaleGuard ()
27 if (setlocale (LC_NUMERIC, old))