From 19f9158dc64eae8d0fc13c63ffbc6c9ebac080e8 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Tue, 27 Sep 2016 16:33:05 +1000 Subject: [PATCH] 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" --- libs/ardour/lv2_plugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 00353fb243..c48a2a261b 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -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.