From a56b3edc586960331469c4d6c5ea238bf845ac10 Mon Sep 17 00:00:00 2001 From: Vladimir Golovnev Date: Tue, 2 Jan 2024 16:03:12 +0300 Subject: [PATCH] Show correctly decoded filename in log PR #20214. Closes #20186. --- src/base/bittorrent/sessionimpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/bittorrent/sessionimpl.cpp b/src/base/bittorrent/sessionimpl.cpp index 725ad7735..437c0cda2 100644 --- a/src/base/bittorrent/sessionimpl.cpp +++ b/src/base/bittorrent/sessionimpl.cpp @@ -5831,7 +5831,7 @@ void SessionImpl::handleFileErrorAlert(const lt::file_error_alert *p) const QString msg = QString::fromStdString(p->message()); LogMsg(tr("File error alert. Torrent: \"%1\". File: \"%2\". Reason: \"%3\"") - .arg(torrent->name(), QString::fromLocal8Bit(p->filename()), msg) + .arg(torrent->name(), QString::fromUtf8(p->filename()), msg) , Log::WARNING); emit fullDiskError(torrent, msg); }