[evince] thumbnailer: Call setlocale in main function
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] thumbnailer: Call setlocale in main function
- Date: Sun, 31 Jan 2016 09:36:26 +0000 (UTC)
commit 972e6fabda63200baf9c1c246b8e71815645c0e4
Author: Ting-Wei Lan <lantw src gnome org>
Date: Mon Jan 11 12:18:23 2016 +0800
thumbnailer: Call setlocale in main function
It is required to correctly show translated messages on some locales.
https://bugzilla.gnome.org/show_bug.cgi?id=760418
thumbnailer/evince-thumbnailer.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/thumbnailer/evince-thumbnailer.c b/thumbnailer/evince-thumbnailer.c
index 998447d..b348d43 100644
--- a/thumbnailer/evince-thumbnailer.c
+++ b/thumbnailer/evince-thumbnailer.c
@@ -22,6 +22,7 @@
#include <gio/gio.h>
+#include <locale.h>
#include <stdlib.h>
#include <string.h>
@@ -228,6 +229,8 @@ main (int argc, char *argv[])
GFile *file;
GError *error = NULL;
+ setlocale (LC_ALL, "");
+
context = g_option_context_new ("- GNOME Document Thumbnailer");
g_option_context_add_main_entries (context, goption_options, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]