13
0

Use PBD::to_string() in LV2Plugin instead of string_compose for state_dir

To prevent issues with numeric grouping with formatting used by string_compose
template/stringstream when global C++ locale != "C"
This commit is contained in:
Tim Mayberry 2016-09-27 16:33:05 +10:00
parent f2e32efc92
commit 19f9158dc6

View File

@ -1264,7 +1264,7 @@ LV2Plugin::file_dir() const
const std::string
LV2Plugin::state_dir(unsigned num) const
{
return Glib::build_filename(plugin_dir(), string_compose("state%1", num));
return Glib::build_filename(plugin_dir(), string("state") + PBD::to_string (num));
}
/** Implementation of state:makePath for files created at instantiation time.