From f1e4fa2f6ef2b216abef4b90e0fba4362a77829f Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 8 Oct 2014 16:35:18 +0200 Subject: fixed locale issue at command line parser --- src/options-launch.c | 2 ++ src/options-rtp.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/options-launch.c b/src/options-launch.c index 16e855d..0615692 100644 --- a/src/options-launch.c +++ b/src/options-launch.c @@ -42,6 +42,7 @@ #include #include #include +#include static void options_defaults(options_t* opt) { @@ -83,6 +84,7 @@ int options_parse(options_t* opt, int argc, char* argv[]) if(!opt) return -1; + setlocale (LC_ALL, ""); options_defaults(opt); g_free(opt->progname_); diff --git a/src/options-rtp.c b/src/options-rtp.c index 3a1aab8..2e13c1b 100644 --- a/src/options-rtp.c +++ b/src/options-rtp.c @@ -42,6 +42,7 @@ #include #include #include +#include static void options_defaults(options_t* opt) { @@ -237,6 +238,7 @@ int options_parse(options_t* opt, int argc, char* argv[]) if(!opt) return -1; + setlocale (LC_ALL, ""); options_defaults(opt); g_free(opt->progname_); -- cgit v1.2.3