GNOME Bugzilla – Bug 313857
Make break.c safe against future line-break type additions in Unicode
Last modified: 2005-08-26 18:54:42 UTC
in Unicode 4.1 five new catogeries are added to the line-breaking property of characters. This makes break.c unhappy with an updated glib: Pango-ERROR **: file break.c: line 780 (pango_default_break): assertion failed: (IN_BREAK_TABLE (break_type)) aborting... This should not happen.
Created attachment 50932 [details] [review] Patch to fix The attached patch fixes the problem by replacing types that we don't know about by G_UNICODE_BREAK_UNKNOWN. It also fixes what I believe is a bug in: btype <= G_N_ELEMENTS(line_break_indexes)
As bug #313583 says, i could reproduce the bug and apply the patch with success.
Owen, should I apply this to the branch too?
Yes.
Committed to HEAD and pango-1-10. 2005-08-26 Behdad Esfahbod <pango@behdad.org> * pango/break.c: Protect against future line-break type additions in glib Unicode module.