forked from mia/Aegisub
Fix compilation with non-16-bit wchar_t
This commit is contained in:
parent
77a2c1bb16
commit
26e7880c8b
1 changed files with 6 additions and 0 deletions
|
@ -273,7 +273,13 @@ wxString LocalizedLanguageName(wxString const& lang) {
|
||||||
if (!iculoc.isBogus()) {
|
if (!iculoc.isBogus()) {
|
||||||
UnicodeString ustr;
|
UnicodeString ustr;
|
||||||
iculoc.getDisplayName(iculoc, ustr);
|
iculoc.getDisplayName(iculoc, ustr);
|
||||||
|
#ifdef _MSC_VER
|
||||||
return wxString(ustr.getBuffer());
|
return wxString(ustr.getBuffer());
|
||||||
|
#else
|
||||||
|
std::string utf8;
|
||||||
|
ustr.toUTF8String(utf8);
|
||||||
|
return to_wx(utf8);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (auto info = wxLocale::FindLanguageInfo(lang))
|
if (auto info = wxLocale::FindLanguageInfo(lang))
|
||||||
|
|
Loading…
Reference in a new issue