Accept 4 digit script tag in FcLangNormalize().
This commit is contained in:
parent
651f122764
commit
5efa1137b4
|
@ -259,7 +259,8 @@ FcLangNormalize (const FcChar8 *lang)
|
||||||
lang);
|
lang);
|
||||||
goto bail0;
|
goto bail0;
|
||||||
}
|
}
|
||||||
if (territory && (tlen < 2 || tlen > 3))
|
if (territory && (tlen < 2 || tlen > 3) &&
|
||||||
|
!(territory[0] == 'z' && tlen < 5))
|
||||||
{
|
{
|
||||||
fprintf (stderr, "Fontconfig warning: ignoring %s: not a valid region tag\n",
|
fprintf (stderr, "Fontconfig warning: ignoring %s: not a valid region tag\n",
|
||||||
lang);
|
lang);
|
||||||
|
|
Loading…
Reference in New Issue