1
0
Fork 0

utils: work around missing C++11 char16_t overload in wx string conversion

This commit is contained in:
line0 2020-04-11 01:14:53 +02:00 committed by Ryan Lucia
parent f039395003
commit 37230683fb
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ wxString LocalizedLanguageName(wxString const& lang) {
icu::UnicodeString ustr;
iculoc.getDisplayName(iculoc, ustr);
#ifdef _MSC_VER
return wxString(ustr.getBuffer());
return wxString((const wchar_t*)ustr.getBuffer());
#else
std::string utf8;
ustr.toUTF8String(utf8);