Rebased.
v12:
* Fixed bug in unicode_normalize() logic around blocked recomposition:
Correctly updates the starter when a new ccc == 0 character appears.
Avoids resetting prev_ccc incorrectly after successful recomposition.
Added an NFC regression test for: x + acute + a + acute -> x + acute + á
* Adds overflow checks for uint8/uint16 table indexes and sizes.
* Adds decomposition_sort_length() helper.
* Makes generated tables match what pgindent expects.
--
Best regards,
Alexander Borisov