Skip to content

Commit

Permalink
Fix exiftool on utf-8 filenames on Windows (fix #2725)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Jul 13, 2022
1 parent e150982 commit 0da880b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/src/exiftool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ bool Exiftool::start(int msecs)
bool Exiftool::setMetadata(const QString &file, const QMap<QString, QString> &metadata, int msecs)
{
QStringList commands;
commands.append({ "-charset", "filename=utf8" });
commands.append({ "-sep", ";" });
for (auto it = metadata.constBegin(); it != metadata.constEnd(); ++it) {
commands.append("-" + it.key() + "=" + it.value());
Expand Down

0 comments on commit 0da880b

Please sign in to comment.