summaryrefslogtreecommitdiff
path: root/gtk/updateiconcache.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2008-02-05 21:43:26 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2008-02-05 21:43:26 +0000
commitd9efa71c84ad5fd58e89d11f05d7ee3fb050537c (patch)
tree1f60a8c7b0ea0bdd29b6e69f8f367bf5e29c51ca /gtk/updateiconcache.c
parentc4be17ba1ba26833a3429f1c22a20969c6a9e199 (diff)
downloadgtk+-d9efa71c84ad5fd58e89d11f05d7ee3fb050537c.tar.gz
Fix the build
svn path=/trunk/; revision=19465
Diffstat (limited to 'gtk/updateiconcache.c')
-rw-r--r--gtk/updateiconcache.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c
index fee8fa6975..84fd0e007c 100644
--- a/gtk/updateiconcache.c
+++ b/gtk/updateiconcache.c
@@ -1586,10 +1586,16 @@ printerr_handler (const gchar *string)
fputs (string, stderr); /* charset is UTF-8 already */
else
{
- gchar *lstring = strdup_convert (string, charset);
- fputs (lstring, stderr);
- g_free (lstring);
-
+ gchar *result;
+
+ result = g_convert_with_fallback (string, -1, charset, "UTF-8", "?", NULL, NULL, NULL);
+
+ if (result)
+ {
+ fputs (result, stderr);
+ g_free (result);
+ }
+
fflush (stderr);
}
}