diff options
author | Rich Felker <dalias@aerifal.cx> | 2007-10-01 05:06:36 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2007-10-01 05:06:36 +0000 |
commit | 8888ac2ce29c83600faed2a1968a5fdd833667be (patch) | |
tree | 9e70e17cc8b913768e2c4ee27df8c352f29c0231 /decomp.c | |
parent | 79b03ede84096488978f15a28c0b5e2886c83887 (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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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))) { |