From bf3973945daef188061f2b6a4486206baaacc49d Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 16 Jul 2010 15:10:58 -0500 Subject: Ah, dumb bug --- src/indicator-datetime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c index b68a6ea..5d7502f 100644 --- a/src/indicator-datetime.c +++ b/src/indicator-datetime.c @@ -631,8 +631,9 @@ static gint generate_strftime_bitmask (IndicatorDatetime * self) { gint retval = 0; - glong strlength = g_utf8_strlen(self->priv->time_string, 0); + glong strlength = g_utf8_strlen(self->priv->time_string, -1); gint i; + g_debug("Evaluating bitmask for '%s'", self->priv->time_string); for (i = 0; i < strlength; i++) { if (self->priv->time_string[i] == '%' && i + 1 < strlength) { -- cgit v1.2.3