Fix to work the debugging option on fc-validate

This commit is contained in:
Akira TAGOH 2017-08-22 20:30:34 +09:00
parent 5efa1137b4
commit ee609da358
1 changed files with 3 additions and 0 deletions

View File

@ -188,6 +188,9 @@ FcLangNormalize (const FcChar8 *lang)
if (!lang || !*lang)
return NULL;
/* might be called without initialization */
FcInitDebug ();
if (FcStrCmpIgnoreCase (lang, (const FcChar8 *)"C") == 0 ||
FcStrCmpIgnoreCase (lang, (const FcChar8 *)"C.UTF-8") == 0 ||
FcStrCmpIgnoreCase (lang, (const FcChar8 *)"C.utf8") == 0 ||