parent
d9741a7f1a
commit
5c6d1ff23b
17
src/fclang.c
17
src/fclang.c
|
@ -551,27 +551,20 @@ bail0:
|
||||||
FcBool
|
FcBool
|
||||||
FcNameUnparseLangSet (FcStrBuf *buf, const FcLangSet *ls)
|
FcNameUnparseLangSet (FcStrBuf *buf, const FcLangSet *ls)
|
||||||
{
|
{
|
||||||
int i, bit;
|
int i;
|
||||||
FcChar32 bits;
|
|
||||||
FcBool first = FcTrue;
|
FcBool first = FcTrue;
|
||||||
|
|
||||||
for (i = 0; i < NUM_LANG_SET_MAP; i++)
|
for (i = 0; i < NUM_LANG_CHAR_SET; i++)
|
||||||
|
if (FcLangSetBitGet (ls, i))
|
||||||
{
|
{
|
||||||
if ((bits = ls->map[i]))
|
|
||||||
{
|
|
||||||
for (bit = 0; bit <= 31; bit++)
|
|
||||||
if (bits & (1 << bit))
|
|
||||||
{
|
|
||||||
int id = (i << 5) | bit;
|
|
||||||
if (!first)
|
if (!first)
|
||||||
if (!FcStrBufChar (buf, '|'))
|
if (!FcStrBufChar (buf, '|'))
|
||||||
return FcFalse;
|
return FcFalse;
|
||||||
if (!FcStrBufString (buf, fcLangCharSets[id].lang))
|
if (!FcStrBufString (buf, fcLangCharSets[i].lang))
|
||||||
return FcFalse;
|
return FcFalse;
|
||||||
first = FcFalse;
|
first = FcFalse;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
if (ls->extra)
|
if (ls->extra)
|
||||||
{
|
{
|
||||||
FcStrList *list = FcStrListCreate (ls->extra);
|
FcStrList *list = FcStrListCreate (ls->extra);
|
||||||
|
|
Loading…
Reference in New Issue