aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChyla Zbigniew <chyla@src.gnome.org>2001-07-14 00:49:18 +0800
committerChyla Zbigniew <chyla@src.gnome.org>2001-07-14 00:49:18 +0800
commitfc4abdadf6262773efb0c6fbc033b06d80ad7714 (patch)
tree789aab13d7128cb75f992dec28c99f8fc711cd59
parent10d8453c53e43a31551af39857a508c5c9101811 (diff)
downloadgsoc2013-evolution-fc4abdadf6262773efb0c6fbc033b06d80ad7714.tar.gz
gsoc2013-evolution-fc4abdadf6262773efb0c6fbc033b06d80ad7714.tar.zst
gsoc2013-evolution-fc4abdadf6262773efb0c6fbc033b06d80ad7714.zip
Convert the date string to utf8 before appending it to HTML.
* e-summary.c (e_summary_draw): Convert the date string to utf8 before appending it to HTML. svn path=/trunk/; revision=11088
-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);