From 2938e4d72da40f6bb0d22086c519a9852a820f40 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Thu, 15 Mar 2018 12:54:02 +0900 Subject: call setlocale --- fc-pattern/fc-pattern.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fc-pattern') diff --git a/fc-pattern/fc-pattern.c b/fc-pattern/fc-pattern.c index f63761c9..7989b816 100644 --- a/fc-pattern/fc-pattern.c +++ b/fc-pattern/fc-pattern.c @@ -36,6 +36,7 @@ #include #include #include +#include #ifdef ENABLE_NLS #include @@ -111,6 +112,7 @@ main (int argc, char **argv) #if HAVE_GETOPT_LONG || HAVE_GETOPT int c; + setlocale (LC_ALL, ""); #if HAVE_GETOPT_LONG while ((c = getopt_long (argc, argv, "cdf:Vh", longopts, NULL)) != -1) #else -- cgit v1.2.3