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
parent 5f06eb3376
commit 34fa9af482
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);