Fix the build

svn path=/trunk/; revision=19465
This commit is contained in:
Matthias Clasen 2008-02-05 21:43:26 +00:00
parent c4be17ba1b
commit d9efa71c84
2 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2008-02-05 Matthias Clasen <mclasen@redhat.com>
* gtk/updateiconcache.c: Fix the previous commit to compile.
2008-02-05 Matthias Clasen <mclasen@redhat.com>
* gtk/updateiconcache.c: Install a printerr handler that

View File

@ -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);
}
}