[gcalctool] When the locale has no thousands separator, use space (bug #632182)



commit c91ec5b7fa8d9c726bb902431a047a50fbaa0d80
Author: Robin Sonefors <ozamosi flukkost nu>
Date:   Tue Oct 19 10:12:44 2010 +0200

    When the locale has no thousands separator, use space (bug #632182)

 src/mp-serializer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/mp-serializer.c b/src/mp-serializer.c
index 13d0234..d1834f4 100644
--- a/src/mp-serializer.c
+++ b/src/mp-serializer.c
@@ -511,7 +511,7 @@ mp_serializer_init(MpSerializer *serializer)
     radix = nl_langinfo(RADIXCHAR);
     serializer->priv->radix = *radix ? g_locale_to_utf8(radix, -1, NULL, NULL, NULL) : g_strdup(".");
     tsep = nl_langinfo(THOUSEP);
-    serializer->priv->tsep = *tsep ? g_locale_to_utf8(tsep, -1, NULL, NULL, NULL) : g_strdup("");
+    serializer->priv->tsep = *tsep ? g_locale_to_utf8(tsep, -1, NULL, NULL, NULL) : g_strdup(" ");
 
     serializer->priv->tsep_count = 3;
     serializer->priv->base = 10;



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