mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
Use qUtf8Printable() for logging strings
qDebug(), qInfo(), qWarning(), qCritical(), qFatal() expect %s arguments to be UTF-8 encoded, while qPrintable() converts to local 8-bit encoding. Therefore qUtf8Printable() should be used for logging strings instead of qPrintable().
This commit is contained in:
@@ -104,7 +104,7 @@ void Profile::ensureDirectoryExists(SpecialFolder folder)
|
||||
{
|
||||
QString locationPath = location(folder);
|
||||
if (!locationPath.isEmpty() && !QDir().mkpath(locationPath))
|
||||
qFatal("Could not create required directory '%s'", qPrintable(locationPath));
|
||||
qFatal("Could not create required directory '%s'", qUtf8Printable(locationPath));
|
||||
}
|
||||
|
||||
QString Profile::toPortablePath(const QString &absolutePath) const
|
||||
|
||||
Reference in New Issue
Block a user