From 6346440828cc9c6306a4b1d936828a4db2a1f4a9 Mon Sep 17 00:00:00 2001 From: AJR Date: Fri, 8 Oct 2021 23:32:05 -0400 Subject: unicode.cpp: Fix build on non-WIN32 systems --- src/lib/util/unicode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/util/unicode.cpp b/src/lib/util/unicode.cpp index ce917ec30aa..e07984d05b2 100644 --- a/src/lib/util/unicode.cpp +++ b/src/lib/util/unicode.cpp @@ -461,7 +461,7 @@ std::wstring wstring_from_utf8(std::string_view utf8string) return osd::text::to_wstring(utf8string); #else std::wstring_convert> converter; - return converter.from_bytes(string.data(), string.data() + string.length()); + return converter.from_bytes(utf8string.data(), utf8string.data() + utf8string.length()); #endif } -- cgit v1.2.3