diff options
author | 2021-10-08 23:32:05 -0400 | |
---|---|---|
committer | 2021-10-08 23:32:05 -0400 | |
commit | 6346440828cc9c6306a4b1d936828a4db2a1f4a9 (patch) | |
tree | ce25fd7661c1910f3fddfd6fd221f8ed481faf73 /src/lib/util/unicode.cpp | |
parent | cfab5b6c03c37031b0f1f3e5c59227c551729f8c (diff) |
unicode.cpp: Fix build on non-WIN32 systems
Diffstat (limited to 'src/lib/util/unicode.cpp')
-rw-r--r-- | src/lib/util/unicode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::codecvt_utf8<wchar_t>> converter; - return converter.from_bytes(string.data(), string.data() + string.length()); + return converter.from_bytes(utf8string.data(), utf8string.data() + utf8string.length()); #endif } |