diff options
author | Ting-Wei Lan <lantw@src.gnome.org> | 2016-01-11 20:26:12 +0800 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2016-01-12 13:35:54 +0100 |
commit | 7158c4c4f5eb22d1a210824f4a404dc90f370391 (patch) | |
tree | 525857ddba051c5f244fbb30f87efae02e02b1da | |
parent | 79bbf6a2b50a25df82222cf6736b5b08aefa1216 (diff) |
grl-launch: Fix help messages in some locales
Call setlocale() first thing in the main() function
https://bugzilla.gnome.org/show_bug.cgi?id=760426
-rw-r--r-- | tools/grilo-launch/grl-launch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/grilo-launch/grl-launch.c b/tools/grilo-launch/grl-launch.c index 825a65b..3b5df49 100644 --- a/tools/grilo-launch/grl-launch.c +++ b/tools/grilo-launch/grl-launch.c @@ -22,6 +22,7 @@ #include <grilo.h> #include <glib.h> +#include <locale.h> #include "config.h" @@ -815,6 +816,8 @@ main (int argc, char *argv[]) { GError *error = NULL; + setlocale (LC_ALL, ""); + context = g_option_context_new ("OPERATION PARAMETERS..."); g_option_context_add_main_entries (context, entries, NULL); g_option_context_add_group (context, grl_init_get_option_group ()); |