From 506e2481cc9cacbe868ada44d9a4e2dbff747aab Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Mon, 1 Apr 2024 02:01:49 +0200 Subject: [PATCH] Fixed UTF16 => UTF8 DebugPrint conversion Signed-off-by: Alexander Borsuk --- base/internal/message.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/internal/message.cpp b/base/internal/message.cpp index fa558caa11..5b656e1b73 100644 --- a/base/internal/message.cpp +++ b/base/internal/message.cpp @@ -36,7 +36,7 @@ namespace internal std::string ToUtf8(std::u16string_view utf16) { std::string utf8; - utf8::unchecked::utf16to8(utf16.begin(), utf16.end(), utf8.begin()); + utf8::unchecked::utf16to8(utf16.begin(), utf16.end(), std::back_inserter(utf8)); return utf8; }