summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fclang.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fclang.c b/src/fclang.c
index fc0620c..bbdce2c 100644
--- a/src/fclang.c
+++ b/src/fclang.c
@@ -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);