aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
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
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')
-rw-r--r--calendar/ChangeLog8
-rw-r--r--calendar/gui/calendar-model.c4
2 files changed, 10 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index d261d43b97..d33bfd24e7 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,11 @@
+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.
+
2001-11-14 Damon Chaplin <damon@ximian.com>
* 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: