don't return blank locale parts

SVN revision: 81340
This commit is contained in:
Mike Blumenkrantz 2012-12-19 09:52:14 +00:00
parent b2663a26fa
commit d6b83ff15e
1 changed files with 1 additions and 0 deletions

View File

@ -729,6 +729,7 @@ e_intl_locale_parts_get(const char *locale)
break;
}
if ((!language[0]) && (!territory[0]) && (!codeset[0]) && (!modifier[0])) return NULL;
locale_parts = E_NEW(E_Locale_Parts, 1);
/* Put the parts of the string together */