From 88c015e00796fa177820aa0b8dd2d4fde7f54dc6 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 30 Dec 2021 00:48:57 +0100 Subject: [PATCH] Gui: encoding/decoding of system specific error message --- src/Gui/Application.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Gui/Application.cpp b/src/Gui/Application.cpp index dc63e2e172..eb3ef7a271 100644 --- a/src/Gui/Application.cpp +++ b/src/Gui/Application.cpp @@ -2295,7 +2295,8 @@ void Application::runApplication(void) flock->lock(); } catch (const boost::interprocess::interprocess_exception& e) { - Base::Console().Warning("Failed to create a file lock for the IPC: %s\n", e.what()); + QString msg = QString::fromLocal8Bit(e.what()); + Base::Console().Warning("Failed to create a file lock for the IPC: %s\n", msg.toUtf8().constData()); } Base::Console().Log("Init: Executing event loop...\n"); @@ -2457,7 +2458,8 @@ void Application::checkForPreviousCrashes() } } catch (const boost::interprocess::interprocess_exception& e) { - Base::Console().Warning("Failed check for previous crashes because of IPC error: %s\n", e.what()); + QString msg = QString::fromLocal8Bit(e.what()); + Base::Console().Warning("Failed check for previous crashes because of IPC error: %s\n", msg.toUtf8().constData()); } }