mirror of
https://github.com/zaerl/mojibake.git
synced 2026-11-30 16:48:26 +01:00
mjb_codepoint_info returned MJB_STATUS_NOT_FOUND for U+D800..U+DFFF and the three private-use ranges, which UnicodeData.txt lists as <..., First>/<..., Last> ranges with General_Category Cs and Co, bidi class L and no name. Synthesize those records in codepoint.c, next to the existing CJK/Tangut range handling, instead of storing ~137k identical entries in the generated payload. Because mjb_for_each_codepoint and mjb_filter skip codepoints without a record, private-use characters were silently dropped by both and by the CLI char/codepoint commands; they are now kept. Signed-off-by: Francesco Bigiarini <francesco.bigiarini@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>