From 015caeed5b1ebca1ef5a32a9fa4b6d455c0dbdde 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 | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/cpp/Crypto/mnemonic.cpp b/src/cpp/Crypto/mnemonic.cpp index a3b40d77d..cc72fea72 100644 --- a/src/cpp/Crypto/mnemonic.cpp +++ b/src/cpp/Crypto/mnemonic.cpp @@ -252,7 +252,15 @@ std::string Mnemonic::getCompleteWordList() std::shared_lock _lock(mWorkingMutex); std::string result(""); //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[] = { "ä", "ö", "ü", "Ä", "Ö", "Ü", "ß" }; for (int i = 0; i < 2048; i++) { if (mWords[i]) { @@ -300,7 +308,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++) {