diff options
author | Akira TAGOH <akira@tagoh.org> | 2017-08-22 20:30:34 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2017-08-22 20:30:34 +0900 |
commit | ee609da3582f46151dd86b30d473833067e83c39 (patch) | |
tree | 0e7f9748421ae97917def3224e5e191566948b1c | |
parent | 5efa1137b41e20bfaef7346f79079f38add25572 (diff) |
Fix to work the debugging option on fc-validate
-rw-r--r-- | src/fclang.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fclang.c b/src/fclang.c index bbdce2c9..107addb5 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 || |