mirror of https://github.com/odrling/Aegisub
Fix compilation with non-16-bit wchar_t
This commit is contained in:
parent
77a2c1bb16
commit
26e7880c8b
|
@ -273,7 +273,13 @@ wxString LocalizedLanguageName(wxString const& lang) {
|
|||
if (!iculoc.isBogus()) {
|
||||
UnicodeString ustr;
|
||||
iculoc.getDisplayName(iculoc, ustr);
|
||||
#ifdef _MSC_VER
|
||||
return wxString(ustr.getBuffer());
|
||||
#else
|
||||
std::string utf8;
|
||||
ustr.toUTF8String(utf8);
|
||||
return to_wx(utf8);
|
||||
#endif
|
||||
}
|
||||
|
||||
if (auto info = wxLocale::FindLanguageInfo(lang))
|
||||
|
|
Loading…
Reference in New Issue