From 491fa51eca606139816d388c5432285191bf81c6 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Fri, 15 Oct 2010 10:42:50 +1100 Subject: [PATCH] Fix locale initialization Bug-Ubuntu: http://launchpad/bugs/660798 --- NEWS | 1 + src/gcalctool.c | 1 + src/math-equation.c | 2 -- 3 files changed, 2 insertions(+), 2 deletions(-) Index: gcalctool-5.32.0/src/gcalctool.c =================================================================== --- gcalctool-5.32.0.orig/src/gcalctool.c 2010-10-15 10:47:41.000000000 +1100 +++ gcalctool-5.32.0/src/gcalctool.c 2010-10-15 10:47:46.656805000 +1100 @@ -213,6 +213,7 @@ g_type_init(); + setlocale(LC_ALL, ""); bindtextdomain(GETTEXT_PACKAGE, LOCALE_DIR); bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); textdomain(GETTEXT_PACKAGE); Index: gcalctool-5.32.0/src/math-equation.c =================================================================== --- gcalctool-5.32.0.orig/src/math-equation.c 2010-10-15 10:47:41.856805000 +1100 +++ gcalctool-5.32.0/src/math-equation.c 2010-10-15 10:47:46.656805000 +1100 @@ -1802,8 +1802,6 @@ } g_strfreev(digits); - setlocale(LC_NUMERIC, ""); - radix = nl_langinfo(RADIXCHAR); equation->priv->radix = radix ? g_utf8_get_char(g_locale_to_utf8(radix, -1, NULL, NULL, NULL)) : '.'; tsep = nl_langinfo(THOUSEP);