From: Howard Chu Date: Thu, 20 May 2004 02:52:22 +0000 (+0000) Subject: Add special cases for Unicode 3.2.0 X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~348 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d557ceda8f2e3116e136dd26c6793ac1983dd999;p=openldap Add special cases for Unicode 3.2.0 --- diff --git a/libraries/liblunicode/ucdata/ucgendat.c b/libraries/liblunicode/ucdata/ucgendat.c index d621e3ef90..199af435f5 100644 --- a/libraries/liblunicode/ucdata/ucgendat.c +++ b/libraries/liblunicode/ucdata/ucgendat.c @@ -855,8 +855,17 @@ read_cdata(FILE *in) * 3. D800-DFFF Surrogates. * 4. E000-F8FF Private Use Area. * 5. F900-FA2D Han compatibility. + * ...Plus additional ranges in newer Unicode versions... */ switch (code) { + case 0x3400: + /* CJK Ideograph Extension A */ + add_range(0x3400, 0x4db5, "Lo", "L"); + + add_range(0x3400, 0x4db5, "Cp", 0); + + skip = 1; + break; case 0x4e00: /* * The Han ideographs. @@ -910,6 +919,26 @@ read_cdata(FILE *in) add_range(0xf900, 0xfaff, "Cp", 0); skip = 1; + break; + case 0x20000: + /* CJK Ideograph Extension B */ + add_range(0x20000, 0x2a6d6, "Lo", "L"); + + add_range(0x20000, 0x2a6d6, "Cp", 0); + + skip = 1; + break; + case 0xf0000: + /* Plane 15 private use */ + add_range(0xf0000, 0xffffd, "Co", "L"); + skip = 1; + break; + + case 0x100000: + /* Plane 16 private use */ + add_range(0x100000, 0x10fffd, "Co", "L"); + skip = 1; + break; } if (skip)