datetime: use g_utf8_next_char() to walk utf8 string
commit6bb89501cf7bfb5e4365d8dd3ef045a0c096af0c
authorChristian Hergert <chris@dronelabs.com>
Tue, 31 Aug 2010 16:27:58 +0000 (31 09:27 -0700)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 6 Sep 2010 10:50:30 +0000 (6 11:50 +0100)
treece656be65f8b0bcc56498e278dcbbff7388e9d8d
parent52e44ddec27cca394e7aa047d994530783b7026a
datetime: use g_utf8_next_char() to walk utf8 string

Previously, the format string was iterated many times by
walking to the given offset in the string repeatedly.
This patch instead walks the string using g_utf8_next_char().

Additionally, the character for lookups was a char and could
loose content.  This uses gunichar instead.

https://bugzilla.gnome.org/show_bug.cgi?id=50076
glib/gdatetime.c