aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-11-15 06:21:22 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-11-15 06:21:22 +0800
commitd932891f608a7fabaada90056e207b891cf4190a (patch)
treebcb24c731e3b58ac8b90276db1335e24470c1e2a /calendar/gui
parentdcdbd48015c6fe7c94ff26305a6022dec2f0166a (diff)
downloadgsoc2013-evolution-d932891f608a7fabaada90056e207b891cf4190a.tar
gsoc2013-evolution-d932891f608a7fabaada90056e207b891cf4190a.tar.gz
gsoc2013-evolution-d932891f608a7fabaada90056e207b891cf4190a.tar.bz2
gsoc2013-evolution-d932891f608a7fabaada90056e207b891cf4190a.tar.lz
gsoc2013-evolution-d932891f608a7fabaada90056e207b891cf4190a.tar.xz
gsoc2013-evolution-d932891f608a7fabaada90056e207b891cf4190a.tar.zst
gsoc2013-evolution-d932891f608a7fabaada90056e207b891cf4190a.zip
Convert the buffer to UTF8. (calendar_model_value_to_string): Do not
2001-11-14 Federico Mena Quintero <federico@ximian.com> * 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
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/calendar-model.c4
1 files changed, 2 insertions, 2 deletions
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: