[pango] Fix line break of surrogate characters
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] Fix line break of surrogate characters
- Date: Sun, 2 Dec 2012 17:15:47 +0000 (UTC)
commit 3bb3a981e6eea19eaa9a5f9a347c78e691e11f96
Author: Behdad Esfahbod <behdad behdad org>
Date: Sun Dec 2 17:27:52 2012 +0200
Fix line break of surrogate characters
pango/break.c | 6 ++++--
1 files 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]