Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

CLangInfo: fix loading of m_languageCodeGeneral on linux/osx

  • Loading branch information...
commit e539456d7801b5d4afaff647dbf09b670da05cf5 1 parent df95bf8
Sascha Montellese authored

Showing 1 changed file with 7 additions and 1 deletion. Show diff stats Hide diff stats

  1. 8  xbmc/LangInfo.cpp
8  xbmc/LangInfo.cpp
@@ -229,7 +229,13 @@ bool CLangInfo::Load(const CStdString& strFileName)
229 229
   if (!g_LangCodeExpander.ConvertWindowsToGeneralCharCode(m_defaultRegion.m_strLangLocaleName, m_languageCodeGeneral))
230 230
     m_languageCodeGeneral = "";
231 231
 #else
232  
-  m_languageCodeGeneral = m_defaultRegion.m_strLangLocaleName;
  232
+  if (m_defaultRegion.m_strLangLocaleName.length() != 3)
  233
+  {
  234
+    if (!g_LangCodeExpander.ConvertToThreeCharCode(m_languageCodeGeneral, m_defaultRegion.m_strLangLocaleName))
  235
+      m_languageCodeGeneral = "";
  236
+  }
  237
+  else
  238
+    m_languageCodeGeneral = m_defaultRegion.m_strLangLocaleName;
233 239
 #endif
234 240
 
235 241
   const TiXmlNode *pCharSets = pRootElement->FirstChild("charsets");

0 notes on commit e539456

Please sign in to comment.
Something went wrong with that request. Please try again.