From: simon Date: Sat, 24 Sep 2005 17:05:19 +0000 (+0000) Subject: Include CNS 11643 in the cstable diagnostic utility. X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/charset/commitdiff_plain/298814b66dfabe182f816b218825367daeaede65 Include CNS 11643 in the cstable diagnostic utility. git-svn-id: svn://svn.tartarus.org/sgt/charset@6347 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/cstable.c b/cstable.c index 1336aac..29deceb 100644 --- a/cstable.c +++ b/cstable.c @@ -24,8 +24,8 @@ int main(void) { long int c; - for (c = 0; c < 0x10000; c++) { - int i, row, col; + for (c = 0; c < 0x30000; c++) { + int i, plane, row, col; char const *sep = ""; printf("U+%04x:", c); @@ -68,6 +68,11 @@ int main(void) sep = ";"; } + if (unicode_to_cns11643(c, &plane, &row, &col)) { + printf("%s CNS11643", sep); + sep = ";"; + } + if (!*sep) printf(" unicode-only");