]> Savannah Git Hosting - gnulib.git/commit
unilbrk: Fix bugs in implementation of Unicode rules (LB15a), (LB15b).
authorBruno Haible <bruno@clisp.org>
Sun, 15 Sep 2024 10:59:46 +0000 (12:59 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 15 Sep 2024 10:59:46 +0000 (12:59 +0200)
commita326d47a8c3a0b265fd1fcd92008f5df416ac8e7
tree43c80443cfe785b70fee77e1ff59dd10ba159047
parentd184a1d754291705fcda3339f8960d8b5cf2818f
unilbrk: Fix bugs in implementation of Unicode rules (LB15a), (LB15b).

* lib/gen-uni-tables.c (output_lbrk_rules_as_tables): Fix typo in
comment.
* lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks_loop):
Do the LBP_QU2 to LBP_QU1 mapping for (LB15a) after the table lookup but
before the assignment to last_prop. Do the LBP_QU3 to LBP_QU1 mapping
for (LB15b) in a way that does not influence prev_prop or last_prop.
* lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks_loop):
Likewise.
* lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks_loop):
Likewise.
ChangeLog
lib/gen-uni-tables.c
lib/unilbrk/u16-possible-linebreaks.c
lib/unilbrk/u32-possible-linebreaks.c
lib/unilbrk/u8-possible-linebreaks.c