Oops, there was another mistake in this patch. Fixed like this:

2024-09-14  Bruno Haible  <br...@clisp.org>

        unilbrk: Fix handling of unassigned code points (regression yesterday).
        * lib/unilbrk/lbrktables.h (unilbrkprop_lookup): Correct the default
        return value.

diff --git a/lib/unilbrk/lbrktables.h b/lib/unilbrk/lbrktables.h
index e8d0719d1a..865bea1690 100644
--- a/lib/unilbrk/lbrktables.h
+++ b/lib/unilbrk/lbrktables.h
@@ -96,6 +96,13 @@ enum
 
 #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)
@@ -118,16 +125,9 @@ unilbrkprop_lookup (ucs4_t uc)
             }
         }
     }
-  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 */




Reply via email to