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 12b2360855
commit bb6950433d
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01

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