From 3bb3a981e6eea19eaa9a5f9a347c78e691e11f96 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 2 Dec 2012 17:27:52 +0200 Subject: [PATCH] Fix line break of surrogate characters --- pango/break.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pango/break.c b/pango/break.c index ca1eb43..e8a97c1 100644 --- a/pango/break.c +++ b/pango/break.c @@ -986,7 +986,8 @@ pango_default_break (const gchar *text, break; case G_UNICODE_BREAK_SURROGATE: - g_assert_not_reached (); + /* Undefined according to UTR#14, but ALLOWED in test data. */ + break_op = BREAK_ALLOWED; break; default: @@ -1022,7 +1023,8 @@ pango_default_break (const gchar *text, break; case G_UNICODE_BREAK_SURROGATE: - g_assert_not_reached (); + /* Undefined according to UTR#14, but ALLOWED in test data. */ + break_op = BREAK_ALLOWED; break; /* Hangul additions are from Unicode 4.1 UAX#14 */ -- 2.7.4