mirror of https://github.com/odrling/Aegisub
utils: work around missing C++11 char16_t overload in wx string conversion
This commit is contained in:
parent
f039395003
commit
37230683fb
|
@ -275,7 +275,7 @@ wxString LocalizedLanguageName(wxString const& lang) {
|
||||||
icu::UnicodeString ustr;
|
icu::UnicodeString ustr;
|
||||||
iculoc.getDisplayName(iculoc, ustr);
|
iculoc.getDisplayName(iculoc, ustr);
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
return wxString(ustr.getBuffer());
|
return wxString((const wchar_t*)ustr.getBuffer());
|
||||||
#else
|
#else
|
||||||
std::string utf8;
|
std::string utf8;
|
||||||
ustr.toUTF8String(utf8);
|
ustr.toUTF8String(utf8);
|
||||||
|
|
Loading…
Reference in New Issue