mirror of https://github.com/odrling/Aegisub
I was never able to reproduce this error as well but I do agree with the fix, I've comitted the patch. closes #1197
Originally committed to SVN as r5358.
This commit is contained in:
parent
4254c7e46e
commit
4ce827bc30
|
@ -304,7 +304,11 @@ getsyslang_fallback:
|
|||
#else
|
||||
static wxString GetSystemLanguage()
|
||||
{
|
||||
return wxLocale::GetLanguageInfo(wxLocale::GetSystemLanguage())->CanonicalName;
|
||||
try {
|
||||
return wxLocale::GetLanguageInfo(wxLocale::GetSystemLanguage())->CanonicalName;
|
||||
} catch (...) {
|
||||
return _T("x-unk");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue