From 2319bdca2e42e823c563c03e4fd419a7a7937713 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 6 Feb 2001 22:59:05 +0000 Subject: Change encoding from locale encoding to utf8. 2001-02-06 Christopher James Lahey * e-cell-date.c (ecd_get_text): Change encoding from locale encoding to utf8. svn path=/trunk/; revision=8033 --- widgets/table/e-cell-date.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'widgets') diff --git a/widgets/table/e-cell-date.c b/widgets/table/e-cell-date.c index b59f001d6a..a70147f0ce 100644 --- a/widgets/table/e-cell-date.c +++ b/widgets/table/e-cell-date.c @@ -11,6 +11,7 @@ #include #include #include +#include #define PARENT_TYPE e_cell_text_get_type () @@ -26,8 +27,9 @@ ecd_get_text(ECellText *cell, ETableModel *model, int col, int row) char buf[26]; gboolean done = FALSE; - if (date == 0) - return g_strdup (_("?")); + if (date == 0) { + return e_utf8_from_locale_string (_("?")); + } localtime_r (&date, &then); localtime_r (&nowdate, &now); @@ -75,8 +77,8 @@ ecd_get_text(ECellText *cell, ETableModel *model, int col, int row) ctime_r (&date, buf); #endif #endif - - return g_strdup (buf); + + return e_utf8_from_locale_string (buf); } static void -- cgit