[hackers] [libgrapheme] Explicitly log which class wants to override which || Laslo Hunhold

From: <git_AT_suckless.org>
Date: Sun, 9 Jan 2022 13:40:19 +0100 (CET)

commit 0f8eb87382b2953b6c4b62c6f4c42616ce74003c
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Sun Jan 9 12:48:37 2022 +0100
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Sun Jan 9 12:48:37 2022 +0100

    Explicitly log which class wants to override which
    
    The Unicode data may change, leading to overlaps where we mix some
    break-classes (e.g. from emoji-data) into one. For easier debugging,
    these classes are now listed explicitly.
    
    Signed-off-by: Laslo Hunhold <dev_AT_frign.de>

diff --git a/gen/util.c b/gen/util.c
index 34f3148..5f6488c 100644
--- a/gen/util.c
+++ b/gen/util.c
_AT_@ -422,7 +422,9 @@ set_value_bp(struct properties_payload *payload, uint_least32_t cp,
 {
         if (payload->prop[cp].break_property != 0) {
                 fprintf(stderr, "set_value_bp: "
- "Character break property overlap.\n");
+ "Character break property overwrite (%s <- %s).\n",
+ payload->spec[payload->prop[cp].break_property].enumname,
+ payload->spec[value].enumname);
                 return 1;
         }
         payload->prop[cp].break_property = value;
Received on Sun Jan 09 2022 - 13:40:19 CET

This archive was generated by hypermail 2.3.0 : Sun Jan 09 2022 - 13:48:33 CET