From cf92f38bb10d57953ac2975cf84f6d25e1320777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20M=C3=A4=C3=A4tt=C3=A4?= Date: Fri, 27 Sep 2024 11:48:10 +0300 Subject: [PATCH] Use toStdU16String when converting string to std::filesystem::path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit qUtf16Printable causes a crash in linux. Pick-to: 6.8.0 6.7 Fixes: QTBUG-129375 Change-Id: Icb0aed74e0a2af762aee464d52a63e0f847b85a9 Reviewed-by: Pasi Petäjäjärvi (cherry picked from commit a599838f7a23df53d6d5f5f252ba820762f239af) Reviewed-by: Qt Cherry-pick Bot --- src/plugins/tracing/qctflib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/tracing/qctflib.cpp b/src/plugins/tracing/qctflib.cpp index fe3946d27cf..b5b988b8aba 100644 --- a/src/plugins/tracing/qctflib.cpp +++ b/src/plugins/tracing/qctflib.cpp @@ -186,7 +186,7 @@ QCtfLibImpl::QCtfLibImpl() void QCtfLibImpl::clearLocation() { #if QT_CONFIG(cxx17_filesystem) - const std::filesystem::path location{qUtf16Printable(m_location)}; + const std::filesystem::path location{m_location.toStdU16String()}; for (auto const& dirEntry : std::filesystem::directory_iterator{location}) { const auto path = dirEntry.path();