[gcalctool] Fix locale initialization



commit 5bf764586648e56f3fb2747436fa91043387a6ad
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Oct 15 10:41:27 2010 +1100

    Fix locale initialization

 src/gcalccmd.c  |    2 +-
 src/gcalctool.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcalccmd.c b/src/gcalccmd.c
index eedd3b2..414fc60 100644
--- a/src/gcalccmd.c
+++ b/src/gcalccmd.c
@@ -83,7 +83,7 @@ main(int argc, char **argv)
     srand48((long) time((time_t *) 0));
 
     g_type_init ();
-    setlocale(LC_NUMERIC, "");
+    setlocale(LC_ALL, "");
 
     equation = (char *) malloc(MAXLINE * sizeof(char));
     while (1) {
diff --git a/src/gcalctool.c b/src/gcalctool.c
index fa0e413..e9121f4 100644
--- a/src/gcalctool.c
+++ b/src/gcalctool.c
@@ -214,8 +214,8 @@ main(int argc, char **argv)
     gchar *source_currency, *target_currency;
 
     g_type_init();
-    setlocale(LC_NUMERIC, "");
 
+    setlocale(LC_ALL, "");
     bindtextdomain(GETTEXT_PACKAGE, LOCALE_DIR);
     bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
     textdomain(GETTEXT_PACKAGE);



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