From 4ccf6891e6ded8949b928c3bdaf1bb07b93ad1d7 Mon Sep 17 00:00:00 2001 From: Dario Date: Tue, 21 Jul 2020 11:38:35 +0200 Subject: [PATCH] fix for linux --- src/cpp/Crypto/mnemonic.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/cpp/Crypto/mnemonic.cpp b/src/cpp/Crypto/mnemonic.cpp index a3b40d77d..4582c81f0 100644 --- a/src/cpp/Crypto/mnemonic.cpp +++ b/src/cpp/Crypto/mnemonic.cpp @@ -300,7 +300,15 @@ std::string Mnemonic::getCompleteWordListSorted() words.sort(compare_nocase); //std::string toReplaced[] = { "auml", "ouml", "uuml", "Auml", "Ouml", "Uuml", "szlig" }; - Poco::RegularExpression toReplaced[] = { "ä", "ö", "ü", "Ä", "Ö", "Ü", "ß" }; + Poco::RegularExpression toReplaced[] = { + std::string("ä"), + std::string("ö"), + std::string("ü"), + std::string("Ä"), + std::string("Ö"), + std::string("Uuml;"), + std::string("ß") + }; std::string replaceStrings[] = { "ä", "ö", "ü", "Ä", "Ö", "Ü", "ß" }; int i = 0; for(auto it = words.begin(); it != words.end(); it++) {