1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-04 13:40:58 +01:00
lllucius
2013-10-07 23:41:27 +00:00
parent 78bb88f169
commit 726139ebc1

View File

@@ -698,8 +698,8 @@ bool EffectNyquist::Process()
//
// MB: setlocale is not thread-safe. Should use uselocale()
// if available, or fix libnyquist to be locale-independent.
char *prevlocale = setlocale(LC_NUMERIC, NULL);
setlocale(LC_NUMERIC, "C");
wxString prevlocale = wxSetlocale(LC_NUMERIC, NULL);
wxSetlocale(LC_NUMERIC, wxT("C"));
nyx_init();
nyx_set_os_callback(StaticOSCallback, (void *)this);
@@ -712,7 +712,7 @@ bool EffectNyquist::Process()
nyx_cleanup();
// Reset previous locale
setlocale(LC_NUMERIC, prevlocale);
wxSetlocale(LC_NUMERIC, prevlocale);
if (!success) {
goto finish;