aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/indicator-datetime.c3
1 files changed, 2 insertions, 1 deletions
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) {