summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-02-26 21:23:14 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-02-26 21:23:14 +0000
commit3eca15ac63e64e48bd9f0881224198c3534043f2 (patch)
tree17f842d896fb887516f1cb843711f44ebdc84463 /examples
parentd952f4afb641fc9f4b42f8347bfa381897ea6830 (diff)
downloadpango-3eca15ac63e64e48bd9f0881224198c3534043f2.tar.gz
Replace each byte in invalid UTF-8 sequences with '?'. (bug #331995)
2006-02-26 Behdad Esfahbod <behdad@gnome.org> * pango/pango-layout.c (pango_layout_set_text): Replace each byte in invalid UTF-8 sequences with '?'. (bug #331995) * examples/renderdemo.c: Don't exit on invalid UTF-8 input.
Diffstat (limited to 'examples')
-rw-r--r--examples/renderdemo.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/renderdemo.c b/examples/renderdemo.c
index 52e911bf..0dda7eb2 100644
--- a/examples/renderdemo.c
+++ b/examples/renderdemo.c
@@ -638,8 +638,6 @@ parse_options (int argc, char *argv[])
{
if (!g_file_get_contents (argv[1], &text, &len, &error))
fail ("%s\n", error->message);
- if (!g_utf8_validate (text, len, NULL))
- fail ("Input text is not valid UTF-8");
}
/* Strip trailing whitespace