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:
Amar Takhar 2011-02-22 04:22:16 +00:00
parent 4254c7e46e
commit 4ce827bc30
1 changed files with 5 additions and 1 deletions

View File

@ -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