aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r--calendar/gui/dialogs/comp-editor-util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/calendar/gui/dialogs/comp-editor-util.c b/calendar/gui/dialogs/comp-editor-util.c
index ed30622df6..b752e2ac48 100644
--- a/calendar/gui/dialogs/comp-editor-util.c
+++ b/calendar/gui/dialogs/comp-editor-util.c
@@ -303,12 +303,12 @@ comp_editor_strip_categories (const char *categories)
start = end = NULL;
new_p = new_categories;
- for (p = categories; *p; p++) {
- int c;
+ for (p = categories; *p; p = g_utf8_next_char (p)) {
+ gunichar c;
- c = *p;
+ c = g_utf8_get_char (p);
- if (isspace (c))
+ if (g_unichar_isspace (c))
continue;
else if (c == ',') {
int len;
@@ -329,7 +329,7 @@ comp_editor_strip_categories (const char *categories)
start = p;
end = p;
} else
- end = p;
+ end = g_utf8_next_char(p) - 1;
}
}