libgrapheme

unicode string library
git clone git://git.suckless.org/libgrapheme
Log | Files | Refs | README | LICENSE

commit 0f8eb87382b2953b6c4b62c6f4c42616ce74003c
parent f23cbefa094449452e8352d50c11ab43abc16f33
Author: Laslo Hunhold <dev@frign.de>
Date:   Sun,  9 Jan 2022 12:48:37 +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@frign.de>

Diffstat:
Mgen/util.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gen/util.c b/gen/util.c @@ -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;