From d932891f608a7fabaada90056e207b891cf4190a Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 14 Nov 2001 22:21:22 +0000 Subject: Convert the buffer to UTF8. (calendar_model_value_to_string): Do not 2001-11-14 Federico Mena Quintero * gui/calendar-model.c (date_value_to_string): Convert the buffer to UTF8. (calendar_model_value_to_string): Do not convert the string fields to UTF8 again; they are already in UTF8. Fixes the UTF8-related bits of bug #15304. svn path=/trunk/; revision=14710 --- calendar/gui/calendar-model.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'calendar/gui/calendar-model.c') diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c index b9a5d41261..e0e4f97d7e 100644 --- a/calendar/gui/calendar-model.c +++ b/calendar/gui/calendar-model.c @@ -1680,7 +1680,7 @@ date_value_to_string (ETableModel *etm, const void *value) e_time_format_date_and_time (&tmp_tm, priv->use_24_hour_format, TRUE, FALSE, buffer, sizeof (buffer)); - return g_strdup (buffer); + return e_utf8_from_locale_string (buffer); } @@ -1698,7 +1698,7 @@ calendar_model_value_to_string (ETableModel *etm, int col, const void *value) case CAL_COMPONENT_FIELD_TRANSPARENCY: case CAL_COMPONENT_FIELD_URL: case CAL_COMPONENT_FIELD_STATUS: - return e_utf8_from_locale_string (value); + return g_strdup (value); case CAL_COMPONENT_FIELD_COMPLETED: case CAL_COMPONENT_FIELD_DTEND: -- cgit v1.2.3