From ee609da3582f46151dd86b30d473833067e83c39 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Tue, 22 Aug 2017 20:30:34 +0900 Subject: [PATCH] Fix to work the debugging option on fc-validate --- src/fclang.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fclang.c b/src/fclang.c index bbdce2c..107addb 100644 --- a/src/fclang.c +++ b/src/fclang.c @@ -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 ||