[grilo/0.2.x] grl-inspect: Fix help messages in some locales
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo/0.2.x] grl-inspect: Fix help messages in some locales
- Date: Tue, 12 Jan 2016 12:41:09 +0000 (UTC)
commit d67c460a76ec44ce400857095ed12c6d5852304e
Author: Ting-Wei Lan <lantw src gnome org>
Date: Mon Jan 11 20:25:15 2016 +0800
grl-inspect: Fix help messages in some locales
Call setlocale() first thing in the main() function
https://bugzilla.gnome.org/show_bug.cgi?id=760426
tools/grilo-inspect/grl-inspect.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tools/grilo-inspect/grl-inspect.c b/tools/grilo-inspect/grl-inspect.c
index 13dfe62..f91775b 100644
--- a/tools/grilo-inspect/grl-inspect.c
+++ b/tools/grilo-inspect/grl-inspect.c
@@ -22,6 +22,7 @@
#include <grilo.h>
#include <glib.h>
+#include <locale.h>
#include "config.h"
#include "grl-core-keys.h"
@@ -503,6 +504,8 @@ main (int argc, char *argv[])
GError *error = NULL;
GOptionContext *context;
+ setlocale (LC_ALL, "");
+
context = g_option_context_new ("- introspect Grilo elements");
g_option_context_add_main_entries (context, entries, NULL);
g_option_context_add_group (context, grl_init_get_option_group ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]