aboutsummaryrefslogtreecommitdiffstats
path: root/src/bidi.c
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2011-08-23 17:45:14 +0300
committerEli Zaretskii <[email protected]>2011-08-23 17:45:14 +0300
commitbca633fb296b17c0e86d589c50fb3414b361e0b3 (patch)
tree1b1e93f6017f7614f6aa950fa78ced1249a99b99 /src/bidi.c
parent4a5885a74a3310ed4f4ba86eee3c406019b2c334 (diff)
Followup for character properties in 2011-08-23T11:48:[email protected].
src/bidi.c (bidi_get_type): Abort if we get zero as the bidi type of a character. admin/unidata/unidata-gen.el (unidata-prop-alist): Update the default values of bidi-class according to DerivedBidiClass.txt from the latest UCD. lisp/international/uni-bidi.el: Regenerated. doc/lispref/nonascii.texi (Character Properties): Document the values for unassigned codepoints.
Diffstat (limited to 'src/bidi.c')
-rw-r--r--src/bidi.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bidi.c b/src/bidi.c
index 7517eca5ae..00aa31bf48 100644
--- a/src/bidi.c
+++ b/src/bidi.c
@@ -108,8 +108,12 @@ bidi_get_type (int ch, bidi_dir_t override)
abort ();
default_type = (bidi_type_t) XINT (CHAR_TABLE_REF (bidi_type_table, ch));
- if (default_type == 0)
- default_type = STRONG_L;
+ /* Every valid character code, even those that are unassigned by the
+ UCD, have some bidi-class property, according to
+ DerivedBidiClass.txt file. Therefore, if we ever get UNKNOWN_BT
+ (= zero) code from CHAR_TABLE_REF, that's a bug. */
+ if (default_type == UNKNOWN_BT)
+ abort ();
if (override == NEUTRAL_DIR)
return default_type;