No need to validate UTF-8 in rsvg_extra_handler_characters()

Libxml2 already guarantees valid UTF-8.

With this we drop the glib requirement down to 2.48.0.
parent 54351e6a
......@@ -44,7 +44,7 @@ dnl This corresponds to Freetype2 2.8
FREETYPE2_REQUIRED=20.0.14
GDK_PIXBUF_REQUIRED=2.20
GIO_REQUIRED=2.24.0
GLIB_REQUIRED=2.52.0
GLIB_REQUIRED=2.48.0
GTK3_REQUIRED=3.10.0
LIBXML_REQUIRED=2.9.0
PANGO_REQUIRED=1.38.0
......
......@@ -478,14 +478,7 @@ rsvg_extra_handler_characters (RsvgSaxHandler * self, const char *ch, gssize len
if (!ch || !len)
return;
if (!g_utf8_validate ((char *) ch, len, NULL)) {
char *utf8;
utf8 = g_utf8_make_valid (ch, len);
g_string_append (z->string, utf8);
g_free (utf8);
} else {
g_string_append_len (z->string, (char *) ch, len);
}
g_string_append_len (z->string, ch, len);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment