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
This commit is contained in:
Josselin Mouette 2017-06-27 11:34:38 +02:00 committed by Akira TAGOH
parent 5d8ee5231a
commit e831f12a38
1 changed files with 2 additions and 0 deletions

View File

@ -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");