summaryrefslogtreecommitdiff
path: root/fc-list
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2018-03-15 12:54:02 +0900
committerAkira TAGOH <akira@tagoh.org>2018-03-15 12:54:02 +0900
commit2938e4d72da40f6bb0d22086c519a9852a820f40 (patch)
treeab16ffbe49cfcbdd9968af414a57655724dc158c /fc-list
parent98eaef69af1350e459bf9c175476d3b772968874 (diff)
call setlocale
Diffstat (limited to 'fc-list')
-rw-r--r--fc-list/fc-list.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fc-list/fc-list.c b/fc-list/fc-list.c
index 5cded50b..2039acd3 100644
--- a/fc-list/fc-list.c
+++ b/fc-list/fc-list.c
@@ -27,6 +27,7 @@
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
+#include <locale.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#else
@@ -117,6 +118,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, "vbf:qVh", longopts, NULL)) != -1)
#else