[folks] Add missing setlocale calls to helper binaries



commit 29b4a35dc58deeec811e9958c74796c7cc6f6454
Author: Simon McVittie <simon mcvittie collabora co uk>
Date:   Wed Mar 20 18:37:54 2013 +0000

    Add missing setlocale calls to helper binaries

 tests/eds/helper-create-many-contacts.vala |    2 ++
 tests/eds/helper-delete-contacts.vala      |    2 ++
 tests/eds/helper-prepare-aggregator.vala   |    2 ++
 3 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/eds/helper-create-many-contacts.vala b/tests/eds/helper-create-many-contacts.vala
index d02439c..281275d 100644
--- a/tests/eds/helper-create-many-contacts.vala
+++ b/tests/eds/helper-create-many-contacts.vala
@@ -130,6 +130,8 @@ public class Main
 
   public static int main (string[] args)
     {
+      Intl.setlocale (LocaleCategory.ALL, "");
+
       if (Environment.get_variable ("FOLKS_TESTS_SANDBOXED_DBUS") != "eds")
         error ("e-d-s helpers must be run in a private D-Bus session with " +
             "e-d-s services");
diff --git a/tests/eds/helper-delete-contacts.vala b/tests/eds/helper-delete-contacts.vala
index 560f93b..13f8d2f 100644
--- a/tests/eds/helper-delete-contacts.vala
+++ b/tests/eds/helper-delete-contacts.vala
@@ -54,6 +54,8 @@ public class Main
 
   public static int main (string[] args)
     {
+      Intl.setlocale (LocaleCategory.ALL, "");
+
       if (Environment.get_variable ("FOLKS_TESTS_SANDBOXED_DBUS") != "eds")
         error ("e-d-s helpers must be run in a private D-Bus session with " +
             "e-d-s services");
diff --git a/tests/eds/helper-prepare-aggregator.vala b/tests/eds/helper-prepare-aggregator.vala
index af639dd..a7b674e 100644
--- a/tests/eds/helper-prepare-aggregator.vala
+++ b/tests/eds/helper-prepare-aggregator.vala
@@ -60,6 +60,8 @@ public class Main
 
   public static int main (string[] args)
     {
+      Intl.setlocale (LocaleCategory.ALL, "");
+
       if (Environment.get_variable ("FOLKS_TESTS_SANDBOXED_DBUS") != "eds" ||
           Environment.get_variable ("FOLKS_BACKENDS_ALLOWED") != "eds" ||
           Environment.get_variable ("FOLKS_PRIMARY_STORE") == null)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]