summaryrefslogtreecommitdiff
path: root/src/fclang.c
diff options
context:
space:
mode:
authorJosselin Mouette <joss@debian.org>2017-06-27 11:34:38 +0200
committerAkira TAGOH <akira@tagoh.org>2017-06-27 21:21:18 +0900
commite831f12a38b490cb832830a582a54d8647884988 (patch)
treed02f672b8525fbab1510d51f4f6931fa89f858ae /src/fclang.c
parent5d8ee5231ab1ea6f36d3103b4de24712c3ae2f64 (diff)
downloadfontconfig-e831f12a38b490cb832830a582a54d8647884988.tar.gz
Treat C.UTF-8 and C.utf8 locales as built in the C library.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=717423 https://bugs.freedesktop.org/show_bug.cgi?id=101605
Diffstat (limited to 'src/fclang.c')
-rw-r--r--src/fclang.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fclang.c b/src/fclang.c
index 18a373c..6da82dd 100644
--- a/src/fclang.c
+++ b/src/fclang.c
@@ -189,6 +189,8 @@ FcLangNormalize (const FcChar8 *lang)
return NULL;
if (FcStrCmpIgnoreCase (lang, (const FcChar8 *)"C") == 0 ||
+ FcStrCmpIgnoreCase (lang, (const FcChar8 *)"C.UTF-8") == 0 ||
+ FcStrCmpIgnoreCase (lang, (const FcChar8 *)"C.utf8") == 0 ||
FcStrCmpIgnoreCase (lang, (const FcChar8 *)"POSIX") == 0)
{
result = FcStrCopy ((const FcChar8 *)"en");