aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-02-07 06:59:05 +0800
committerChris Lahey <clahey@src.gnome.org>2001-02-07 06:59:05 +0800
commit2319bdca2e42e823c563c03e4fd419a7a7937713 (patch)
tree64de69acb330cbb82b5eec730240ec2b3688923d /widgets
parent4a01c7558799e57732fe620670d6a73f1859c1b5 (diff)
downloadgsoc2013-evolution-2319bdca2e42e823c563c03e4fd419a7a7937713.tar
gsoc2013-evolution-2319bdca2e42e823c563c03e4fd419a7a7937713.tar.gz
gsoc2013-evolution-2319bdca2e42e823c563c03e4fd419a7a7937713.tar.bz2
gsoc2013-evolution-2319bdca2e42e823c563c03e4fd419a7a7937713.tar.lz
gsoc2013-evolution-2319bdca2e42e823c563c03e4fd419a7a7937713.tar.xz
gsoc2013-evolution-2319bdca2e42e823c563c03e4fd419a7a7937713.tar.zst
gsoc2013-evolution-2319bdca2e42e823c563c03e4fd419a7a7937713.zip
Change encoding from locale encoding to utf8.
2001-02-06 Christopher James Lahey <clahey@ximian.com> * e-cell-date.c (ecd_get_text): Change encoding from locale encoding to utf8. svn path=/trunk/; revision=8033
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-cell-date.c10
1 files changed, 6 insertions, 4 deletions
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 <sys/time.h>
#include <unistd.h>
#include <gal/util/e-util.h>
+#include <gal/widgets/e-unicode.h>
#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