Include CNS 11643 in the cstable diagnostic utility.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 24 Sep 2005 17:05:19 +0000 (17:05 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 24 Sep 2005 17:05:19 +0000 (17:05 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/charset@6347 cda61777-01e9-0310-a592-d414129be87e

cstable.c

index 1336aac..29deceb 100644 (file)
--- 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");