From fb022cb5e964b702c8ea6b330d5b1878fb530504 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Fri, 27 Dec 2024 16:39:16 -0500 Subject: [PATCH] Fix passphrase word lists not rendering with UTF-8 * Fixes #11599 --- src/core/PassphraseGenerator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/PassphraseGenerator.cpp b/src/core/PassphraseGenerator.cpp index dfac05e77..d8116c827 100644 --- a/src/core/PassphraseGenerator.cpp +++ b/src/core/PassphraseGenerator.cpp @@ -72,6 +72,7 @@ void PassphraseGenerator::setWordList(const QString& path) } QTextStream in(&file); + in.setCodec("UTF-8"); QString line = in.readLine(); bool isSigned = line.startsWith("-----BEGIN PGP SIGNED MESSAGE-----"); if (isSigned) {