diff options
author | Akira TAGOH <akira@tagoh.org> | 2017-08-22 17:47:14 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2017-08-22 17:58:22 +0900 |
commit | 5efa1137b41e20bfaef7346f79079f38add25572 (patch) | |
tree | e16bbd3d5cf06d56482e089ee1ef4a9ebe29250f | |
parent | 651f1227646174b5be0186b4b6cdff3a7134d869 (diff) |
Accept 4 digit script tag in FcLangNormalize().
-rw-r--r-- | src/fclang.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fclang.c b/src/fclang.c index fc0620c4..bbdce2c9 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); |