5 #include "pbd/locale_guard.h"
9 LocaleGuard::LocaleGuard (const char* str)
11 old = setlocale (LC_NUMERIC, NULL);
15 if (strcmp (old, str)) {
16 setlocale (LC_NUMERIC, str);
21 LocaleGuard::~LocaleGuard ()
23 setlocale (LC_NUMERIC, old);
26 free (const_cast<char*>(old));