[tracker-miner-chatlog] main: Call setlocale()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miner-chatlog] main: Call setlocale()
- Date: Sat, 26 Nov 2016 17:09:24 +0000 (UTC)
commit 75a4dec933c838cb83a12a7b28be60eacdf169a4
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Nov 26 18:00:07 2016 +0100
main: Call setlocale()
This is necessary for TrackerConnection to pick up the direct backend
over the DBus one.
src/main.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 1bf3e4f..153672f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -19,6 +19,9 @@
* Author: Carlos Garnacho <carlosg gnome org>
*/
+#include "config.h"
+
+#include <locale.h>
#include <glib-unix.h>
#include "entity-pool.h"
#include "miner.h"
@@ -57,6 +60,8 @@ main (int argc,
GMainLoop *loop;
GError *error = NULL;
+ setlocale (LC_ALL, "");
+
miner = tmc_miner_new (&error);
if (error) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]