diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2008-02-05 21:43:26 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2008-02-05 21:43:26 +0000 |
commit | d9efa71c84ad5fd58e89d11f05d7ee3fb050537c (patch) | |
tree | 1f60a8c7b0ea0bdd29b6e69f8f367bf5e29c51ca /gtk/updateiconcache.c | |
parent | c4be17ba1ba26833a3429f1c22a20969c6a9e199 (diff) | |
download | gtk+-d9efa71c84ad5fd58e89d11f05d7ee3fb050537c.tar.gz |
Fix the build
svn path=/trunk/; revision=19465
Diffstat (limited to 'gtk/updateiconcache.c')
-rw-r--r-- | gtk/updateiconcache.c | 14 |
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); } } |