--- gcalctool-4.3.31/gcalctool/get.c.mitr	2003-12-31 23:17:08.000000000 +0100
+++ gcalctool-4.3.31/gcalctool/get.c	2003-12-31 23:20:16.000000000 +0100
@@ -29,6 +29,7 @@
 #include <sys/types.h>
 #include <sys/file.h>
 #include <sys/param.h>
+#include <glib.h>
 #include "calctool.h"
 #include "extern.h"
 
@@ -129,7 +130,10 @@
 
     setlocale(LC_NUMERIC, "");
     radix = nl_langinfo(RADIXCHAR);
-
+	
+    if (radix != NULL) {
+	radix = g_locale_to_utf8 (radix, -1, NULL, NULL, NULL);
+    }
     if (radix == NULL || radix[0] == '\0') {
         return(".");
     } else {
@@ -230,6 +234,9 @@
     setlocale(LC_NUMERIC, "");
     tsep = nl_langinfo(THOUSEP);
 
+    if (tsep != NULL) {
+	tsep = g_locale_to_utf8 (tsep, -1, NULL, NULL, NULL);
+    }
     if (tsep == NULL || tsep[0] == '\0') {
         return(",");
     } else {
