Index: gtk.c
===================================================================
RCS file: /cvs/gnome/gcalctool/gcalctool/gtk.c,v
retrieving revision 1.65
diff -u -p -r1.65 gtk.c
--- gtk.c	19 Feb 2003 22:32:56 -0000	1.65
+++ gtk.c	20 Feb 2003 07:05:53 -0000
@@ -1713,17 +1713,22 @@ set_display(char *str)
 {
     GtkTextBuffer *buffer;
     GtkTextIter start, end;
+    gchar *utf8_str;
 
+    utf8_str = g_locale_to_utf8(str, strlen(str), NULL, NULL, NULL);
+	
     buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(X->display_item));
     gtk_text_buffer_get_bounds (buffer, &start, &end);
     gtk_text_buffer_delete(buffer, &start, &end);
 
     gtk_text_buffer_insert_with_tags_by_name(buffer,
                                              &end,
-                                             strlen(str) != 0 ? str : " ",
+                                             utf8_str != NULL && strlen(utf8_str) != 0 ? utf8_str : " ",
                                              -1,
                                              "x-large",
                                              NULL);
+
+    g_free(utf8_str);
 }
 
 
