DISTRHO Plugin Framework
|
#include <ScopedSafeLocale.hpp>
ScopedSafeLocale is a handy class for setting current locale to C on constructor, and revert back on destructor. It tries to be thread-safe, but it is not always possible.
Put it inside a scope of code where string conversions happen to ensure they are consistent across many systems. For example: