From 8888ac2ce29c83600faed2a1968a5fdd833667be Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 1 Oct 2007 05:06:36 +0000 Subject: updates to decomposition data: - support single-replacement decompositions (legacy chars like angstrom) - correct for mandatory replacements wrongly marked in ucd - include newly added characters in the tables - omit presentation forms/cjk compat block for the time being --- decomp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'decomp.c') diff --git a/decomp.c b/decomp.c index 3b8d79d..7595509 100644 --- a/decomp.c +++ b/decomp.c @@ -22,8 +22,7 @@ int uu_decompose_char(unsigned c, unsigned *d, unsigned max) } p = c>>8; - if (p == 0xfb) page = page_0fb; - else if (p <= 0x30) page = pages[p]; + if (p <= sizeof(pages)/sizeof(pages[0])) page = pages[p]; else page = NULL; if (page && (page[c>>5 & 7] & 1<<(c&31))) { -- cgit v1.2.3