summaryrefslogtreecommitdiff
path: root/decomp.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2007-10-01 05:06:36 +0000
committerRich Felker <dalias@aerifal.cx>2007-10-01 05:06:36 +0000
commit8888ac2ce29c83600faed2a1968a5fdd833667be (patch)
tree9e70e17cc8b913768e2c4ee27df8c352f29c0231 /decomp.c
parent79b03ede84096488978f15a28c0b5e2886c83887 (diff)
updates to decomposition data:
- support single-replacement decompositions (legacy chars like angstrom) - correct for mandatory replacements wrongly marked <compat> in ucd - include newly added characters in the tables - omit presentation forms/cjk compat block for the time being
Diffstat (limited to 'decomp.c')
-rw-r--r--decomp.c3
1 files changed, 1 insertions, 2 deletions
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))) {