[libgda] Correction for bug #760420 (thanks to Ting-Wei Lan)



commit c9979dc72ace6b70e59f57919356700d6c25920e
Author: Vivien Malerba <malerba gnome-db org>
Date:   Sat Feb 6 15:21:37 2016 +0100

    Correction for bug #760420 (thanks to Ting-Wei Lan)

 testing/gda-test-connection.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/testing/gda-test-connection.c b/testing/gda-test-connection.c
index c99c288..8b771b2 100644
--- a/testing/gda-test-connection.c
+++ b/testing/gda-test-connection.c
@@ -1,6 +1,7 @@
 /*
  * Copyright (C) 2006 - 2014 Vivien Malerba <malerba gnome-db org>
  * Copyright (C) 2010 David King <davidk openismus com>
+ * Copyright (C) 2016 Ting-Wei Lan <lantw44 gmail com>
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -18,6 +19,7 @@
  */
 #include <libgda/libgda.h>
 #include <glib/gi18n-lib.h>
+#include <locale.h>
 
 /* options */
 gchar *pass = NULL;
@@ -45,6 +47,8 @@ main (int argc, char **argv)
        GdaConnection *cnc;
        gchar *auth_string = NULL;
 
+       setlocale (LC_ALL, "");
+
        /* command line parsing */
        context = g_option_context_new ("Tests opening a connection");
        g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE);


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