diff --git a/src/core/songloader.cpp b/src/core/songloader.cpp index 2cfbf5812..677fc26b5 100644 --- a/src/core/songloader.cpp +++ b/src/core/songloader.cpp @@ -520,8 +520,8 @@ void SongLoader::ErrorMessageReceived(GstMessage* msg) { gchar* debugs; gst_message_parse_error(msg, &error, &debugs); - qLog(Error) << error->message; - qLog(Error) << debugs; + qLog(Error) << QString::fromLocal8Bit(error->message); + qLog(Error) << QString::fromLocal8Bit(debugs); QString message_str = error->message; diff --git a/src/devices/cddasongloader.cpp b/src/devices/cddasongloader.cpp index ef92046a1..19b669bd8 100644 --- a/src/devices/cddasongloader.cpp +++ b/src/devices/cddasongloader.cpp @@ -56,7 +56,7 @@ void CddaSongLoader::LoadSongsFromCdda() { GError* error = nullptr; cdda_ = gst_element_make_from_uri(GST_URI_SRC, "cdda://", nullptr, &error); if (error) { - qLog(Error) << error->code << error->message; + qLog(Error) << error->code << QString::fromLocal8Bit(error->message); } if (cdda_ == nullptr) { return; diff --git a/src/devices/giolister.cpp b/src/devices/giolister.cpp index 5f63ef248..290e21a0f 100644 --- a/src/devices/giolister.cpp +++ b/src/devices/giolister.cpp @@ -60,7 +60,8 @@ void OperationFinished(F f, GObject* object, GAsyncResult* result) { f(obj, result, &error); if (error) { - qLog(Error) << "Mount/unmount error:" << error->message; + qLog(Error) << "Mount/unmount error:" + << QString::fromLocal8Bit(error->message); g_error_free(error); } } @@ -381,7 +382,7 @@ void GioLister::DeviceInfo::ReadMountInfo(GMount* mount) { "," G_FILE_ATTRIBUTE_FILESYSTEM_FREE "," G_FILE_ATTRIBUTE_FILESYSTEM_TYPE, nullptr, &error); if (error) { - qLog(Warning) << error->message; + qLog(Warning) << QString::fromLocal8Bit(error->message); g_error_free(error); } else { filesystem_size = g_file_info_get_attribute_uint64( @@ -400,7 +401,7 @@ void GioLister::DeviceInfo::ReadMountInfo(GMount* mount) { info = g_file_query_info(root, G_FILE_ATTRIBUTE_ID_FILESYSTEM, G_FILE_QUERY_INFO_NONE, nullptr, &error); if (error) { - qLog(Warning) << error->message; + qLog(Warning) << QString::fromLocal8Bit(error->message); g_error_free(error); } else { mount_uuid = QString::fromUtf8(g_file_info_get_attribute_string( @@ -513,7 +514,7 @@ void GioLister::UpdateDeviceFreeSpace(const QString& id) { GFileInfo* info = g_file_query_filesystem_info( root, G_FILE_ATTRIBUTE_FILESYSTEM_FREE, nullptr, &error); if (error) { - qLog(Warning) << error->message; + qLog(Warning) << QString::fromLocal8Bit(error->message); g_error_free(error); } else { device_info.filesystem_free = g_file_info_get_attribute_uint64( diff --git a/src/devices/gpoddevice.cpp b/src/devices/gpoddevice.cpp index cacfb14ec..be3f76bcb 100644 --- a/src/devices/gpoddevice.cpp +++ b/src/devices/gpoddevice.cpp @@ -113,7 +113,7 @@ bool GPodDevice::CopyToStorage(const CopyJob& job) { track, QDir::toNativeSeparators(job.source_).toLocal8Bit().constData(), &error); if (error) { - qLog(Error) << "copying failed:" << error->message; + qLog(Error) << "copying failed:" << QString::fromUtf8(error->message); app_->AddError(QString::fromUtf8(error->message)); g_error_free(error); @@ -138,7 +138,8 @@ void GPodDevice::WriteDatabase(bool success) { GError* error = nullptr; itdb_write(db_, &error); if (error) { - qLog(Error) << "writing database failed:" << error->message; + qLog(Error) << "writing database failed:" + << QString::fromUtf8(error->message); app_->AddError(QString::fromUtf8(error->message)); g_error_free(error); } else { diff --git a/src/devices/gpodloader.cpp b/src/devices/gpodloader.cpp index b57596fc0..60fd26444 100644 --- a/src/devices/gpodloader.cpp +++ b/src/devices/gpodloader.cpp @@ -53,7 +53,8 @@ void GPodLoader::LoadDatabase() { // Check for errors if (!db) { if (error) { - qLog(Error) << "loading database failed:" << error->message; + qLog(Error) << "loading database failed:" + << QString::fromUtf8(error->message); emit Error(QString::fromUtf8(error->message)); g_error_free(error); } else {