summaryrefslogtreecommitdiff
path: root/pango/break.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-12-02 17:27:52 +0200
committerBehdad Esfahbod <behdad@behdad.org>2012-12-02 18:09:40 +0200
commit3bb3a981e6eea19eaa9a5f9a347c78e691e11f96 (patch)
treef31c4fec44c11413f6acf973b21dacbbc41d3b2d /pango/break.c
parentda1fa444b9c1c766daaf04357b207a21cef7be8a (diff)
downloadpango-3bb3a981e6eea19eaa9a5f9a347c78e691e11f96.tar.gz
Fix line break of surrogate characters
Diffstat (limited to 'pango/break.c')
-rw-r--r--pango/break.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pango/break.c b/pango/break.c
index ca1eb43f..e8a97c1d 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 */