Fix passphrase word lists not rendering with UTF-8

* Fixes #11599
This commit is contained in:
Jonathan White 2024-12-27 16:39:16 -05:00
parent e76e9d42c7
commit fb022cb5e9

View File

@ -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) {