aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--my-evolution/ChangeLog5
-rw-r--r--my-evolution/e-summary.c7
2 files changed, 10 insertions, 2 deletions
diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog
index 376331c1d4..8050379d12 100644
--- a/my-evolution/ChangeLog
+++ b/my-evolution/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-13 Zbigniew Chyla <cyba@gnome.pl>
+
+ * e-summary.c (e_summary_draw): Convert the date string to utf8 before
+ appending it to HTML.
+
2001-07-12 Iain Holmes <iain@ximian.com>
* metar.c: #include <config.h>
diff --git a/my-evolution/e-summary.c b/my-evolution/e-summary.c
index 1427e7f6e4..c4e5e4ea57 100644
--- a/my-evolution/e-summary.c
+++ b/my-evolution/e-summary.c
@@ -24,6 +24,7 @@
#include <gal/util/e-util.h>
#include <gal/widgets/e-gui-utils.h>
+#include <gal/widgets/e-unicode.h>
#include <bonobo/bonobo-listener.h>
#include <libgnome/gnome-paper.h>
@@ -128,7 +129,7 @@ e_summary_draw (ESummary *summary)
GString *string;
GtkHTMLStream *stream;
char *html;
- char date[256];
+ char date[256], *date_utf;
time_t t;
g_return_if_fail (summary != NULL);
@@ -143,7 +144,9 @@ e_summary_draw (ESummary *summary)
t = time (NULL);
strftime (date, 255, _("%A, %d %B %Y"), localtime (&t));
- html = g_strdup_printf (HTML_2, date);
+ date_utf = e_utf8_from_locale_string (date);
+ html = g_strdup_printf (HTML_2, date_utf);
+ g_free (date_utf);
g_string_append (string, html);
g_free (html);
g_string_append (string, HTML_3);