comparison plugin/RealTimePluginFactory.cpp @ 303:15b47d30c085

* Ensure locale from environment is retained after plugin load, not just C locale
author Chris Cannam
date Fri, 05 Oct 2007 13:26:47 +0000
parents dc46851837d6
children 115f60df1e4d
comparison
equal deleted inserted replaced
302:726b32522e3f 303:15b47d30c085
22 #include "RealTimePluginFactory.h" 22 #include "RealTimePluginFactory.h"
23 #include "PluginIdentifier.h" 23 #include "PluginIdentifier.h"
24 24
25 #include "LADSPAPluginFactory.h" 25 #include "LADSPAPluginFactory.h"
26 #include "DSSIPluginFactory.h" 26 #include "DSSIPluginFactory.h"
27
28 #include "system/System.h"
27 29
28 #include <iostream> 30 #include <iostream>
29 31
30 int RealTimePluginFactory::m_sampleRate = 48000; 32 int RealTimePluginFactory::m_sampleRate = 48000;
31 33
96 rv.push_back(tmp[i]); 98 rv.push_back(tmp[i]);
97 } 99 }
98 } 100 }
99 101
100 // Plugins can change the locale, revert it to default. 102 // Plugins can change the locale, revert it to default.
101 setlocale(LC_ALL, "C"); 103 RestoreStartupLocale();
104
102 return rv; 105 return rv;
103 } 106 }
104 107
105 void 108 void
106 RealTimePluginFactory::enumerateAllPlugins(std::vector<QString> &list) 109 RealTimePluginFactory::enumerateAllPlugins(std::vector<QString> &list)