From 674dc6d64e6655496bffe27038897530b797219b Mon Sep 17 00:00:00 2001 From: Luca Weiss Date: Sat, 3 Jul 2021 11:43:27 +0200 Subject: [PATCH] fix build with fmt 8.0.0 (#1744) pass a std::string to fmt instead of a Glib::ustring --- src/ct/ct_actions_others.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ct/ct_actions_others.cc b/src/ct/ct_actions_others.cc index b0fb011d2..7550f6e7f 100644 --- a/src/ct/ct_actions_others.cc +++ b/src/ct/ct_actions_others.cc @@ -289,7 +289,7 @@ void CtActions::link_clicked(const Glib::ustring& tag_property_value, bool from_ if (link_entry.type == CtConst::LINK_TYPE_WEBS) { // link to webpage Glib::ustring clean_weblink = str::replace(link_entry.webs, "amp;", ""); if (_pCtMainWin->get_ct_config()->weblinkCustomOn) { - std::string cmd = fmt::sprintf(_pCtMainWin->get_ct_config()->weblinkCustomAct, clean_weblink); + std::string cmd = fmt::sprintf(_pCtMainWin->get_ct_config()->weblinkCustomAct, clean_weblink.raw()); int retr = std::system(cmd.c_str()); if (retr == -1) { // Internal std::system error