diff options
author | Chyla Zbigniew <chyla@src.gnome.org> | 2001-07-14 00:49:18 +0800 |
---|---|---|
committer | Chyla Zbigniew <chyla@src.gnome.org> | 2001-07-14 00:49:18 +0800 |
commit | fc4abdadf6262773efb0c6fbc033b06d80ad7714 (patch) | |
tree | 789aab13d7128cb75f992dec28c99f8fc711cd59 /my-evolution/e-summary.c | |
parent | 10d8453c53e43a31551af39857a508c5c9101811 (diff) | |
download | gsoc2013-evolution-fc4abdadf6262773efb0c6fbc033b06d80ad7714.tar gsoc2013-evolution-fc4abdadf6262773efb0c6fbc033b06d80ad7714.tar.gz gsoc2013-evolution-fc4abdadf6262773efb0c6fbc033b06d80ad7714.tar.bz2 gsoc2013-evolution-fc4abdadf6262773efb0c6fbc033b06d80ad7714.tar.lz gsoc2013-evolution-fc4abdadf6262773efb0c6fbc033b06d80ad7714.tar.xz 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
Diffstat (limited to 'my-evolution/e-summary.c')
-rw-r--r-- | my-evolution/e-summary.c | 7 |
1 files changed, 5 insertions, 2 deletions
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); |