Verified Commit f573a51f authored by Andre Heinecke's avatar Andre Heinecke
Browse files

Pass UTF-8 filenames to gpgtar on Windows

This should finally allow us to archive files with
non 8 bit filenames on Windows which could not always
be represented in the windows 8 bit encoding of QFile::encodeName.
parent 30306bea
......@@ -314,7 +314,14 @@ static QByteArray make_input(const QStringList &files, char sep)
QByteArray result;
for (const QString &file : files) {
#ifdef Q_OS_WIN
// As encoding is more complicated on windows with different
// 8 bit codepages we always use UTF-8 here and add this as an
// option in the libkleopatrarc.desktop archive definition.
result += file.toUtf8();
result += QFile::encodeName(file);
result += sep;
return result;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment