--- libcroco-0.6.8/src/cr-enc-handler.c.orig	2013-10-13 15:55:06.078995000 +0000
+++ libcroco-0.6.8/src/cr-enc-handler.c	2013-10-13 15:55:14.338543800 +0000
@@ -118,8 +118,7 @@
 
         g_return_val_if_fail (a_alias_name != NULL, CR_BAD_PARAM_ERROR);
 
-        alias_name_up = g_strdup (a_alias_name);
-        g_ascii_strup (alias_name_up, -1);
+        alias_name_up = (guchar *) g_ascii_strup ((const gchar *) a_alias_name, -1);
 
         for (i = 0; gv_default_aliases[i].name; i++) {
                 if (!strcmp (gv_default_aliases[i].name, alias_name_up)) {
--- libcroco-0.6.8/src/cr-enc-handler.c.orig2	2013-10-13 15:55:14.338543800 +0000
+++ libcroco-0.6.8/src/cr-enc-handler.c	2013-10-13 15:56:38.336210200 +0000
@@ -121,7 +121,7 @@
         alias_name_up = (guchar *) g_ascii_strup ((const gchar *) a_alias_name, -1);
 
         for (i = 0; gv_default_aliases[i].name; i++) {
-                if (!strcmp (gv_default_aliases[i].name, alias_name_up)) {
+                if (!strcmp (gv_default_aliases[i].name, (const gchar *) alias_name_up)) {
                         *a_enc = gv_default_aliases[i].encoding;
                         status = CR_OK;
                         break;
