summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c
index 8d5a57e3..92b96f8e 100644
--- a/src/util.c
+++ b/src/util.c
@@ -158,15 +158,18 @@ utf8_fputs (const char *str,
FILE *f)
{
char *l;
-
+ int retval;
+
l = g_locale_from_utf8 (str, -1, NULL, NULL, NULL);
if (l == NULL)
- fputs (str, f); /* just print it anyway, better than nothing */
+ retval = fputs (str, f); /* just print it anyway, better than nothing */
else
- fputs (l, f);
+ retval = fputs (l, f);
g_free (l);
+
+ return retval;
}
void
@@ -262,6 +265,8 @@ topic_name (MetaDebugTopic topic)
return "STARTUP";
case META_DEBUG_PREFS:
return "PREFS";
+ case META_DEBUG_GROUPS:
+ return "GROUPS";
}
return "Window manager";