+2024-09-14 Bruno Haible <bruno@clisp.org>
+
+ unilbrk: Fix handling of unassigned code points (regression yesterday).
+ * lib/unilbrk/lbrktables.h (unilbrkprop_lookup): Correct the default
+ return value.
+
2024-09-14 Bruno Haible <bruno@clisp.org>
unilbrk/tables: Fix table (regression yesterday).
#include "lbrkprop1.h"
+/* Combining prop and ea to a table entry. */
+#define PROP_EA(prop,ea) (((prop) << 1) | (ea))
+
+/* Splitting a table entry into prop and ea. */
+#define PROP(entry) ((entry) >> 1)
+#define EA(entry) ((entry) & 1)
+
/* Returns (prop << 1) | ea, where
- prop is the line breaking property,
- ea is the EastAsian property (1 bit)
}
}
}
- return LBP_XX;
+ return PROP_EA (LBP_XX, 0);
}
-/* Splitting a table entry into prop and ea. */
-#define PROP(entry) ((entry) >> 1)
-#define EA(entry) ((entry) & 1)
-
-/* Combining prop and ea to a table entry. */
-#define PROP_EA(prop,ea) (((prop) << 1) | (ea))
-
/* Table indexed by two line breaking classifications. */
#define D 1 /* direct break opportunity, empty in table 7.3 of UTR #14 */