From: Takashi Sawanaka Date: Wed, 20 Sep 2023 12:20:35 +0000 (+0900) Subject: Substituion filters page: Fix the garbled message that is displayed when you enter... X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ec33e250c4922e3c7aee4570dd0d46618146bac0;p=winmerge-jp%2Fwinmerge-jp.git Substituion filters page: Fix the garbled message that is displayed when you enter an invalid regular expression and press the OK button. --- diff --git a/Src/SubstitutionFiltersList.cpp b/Src/SubstitutionFiltersList.cpp index 0ae6cafdc..09cdbe794 100644 --- a/Src/SubstitutionFiltersList.cpp +++ b/Src/SubstitutionFiltersList.cpp @@ -276,7 +276,7 @@ std::shared_ptr SubstitutionFiltersList::MakeSubstitutionList( if (throwIfInvalid) { plist.reset(); - const String msg = strutils::format(_T("#%d: %s"), i + 1, e.message().c_str()); + const String msg = strutils::format(_T("#%d: %S"), i + 1, e.message().c_str()); throw Poco::RegularExpressionException(ucr::toUTF8(msg).c_str(), e.code()); } }