Commit 5efa1137 authored by Akira TAGOH's avatar Akira TAGOH

Accept 4 digit script tag in FcLangNormalize().

parent 651f1227
......@@ -259,7 +259,8 @@ FcLangNormalize (const FcChar8 *lang)
lang);
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",
lang);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment