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:
parent
f2e32efc92
commit
19f9158dc6
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user