Bug 28958 - lang=en matches other langs

Patch from Akira TAGOH.
This commit is contained in:
Behdad Esfahbod 2010-12-07 18:48:56 -05:00
parent 1e7a2a4f6c
commit 0d47cfabd8
1 changed files with 2 additions and 0 deletions

View File

@ -505,6 +505,7 @@ FcLangSetCompare (const FcLangSet *lsa, const FcLangSet *lsb)
/*
* Used in computing values -- mustn't allocate any storage
* XXX Not thread-safe
*/
FcLangSet *
FcLangSetPromote (const FcChar8 *lang)
@ -515,6 +516,7 @@ FcLangSetPromote (const FcChar8 *lang)
int id;
memset (ls.map, '\0', sizeof (ls.map));
ls.map_size = NUM_LANG_SET_MAP;
ls.extra = 0;
id = FcLangSetIndex (lang);
if (id > 0)