aboutsummaryrefslogtreecommitdiff
path: root/iconvdata/cns11643.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-04-20 07:58:48 +0000
committerUlrich Drepper <drepper@redhat.com>2002-04-20 07:58:48 +0000
commit93a568aaba1d3da3497102dfe1eeb81070a24c1c (patch)
tree2832e216f8fe8085a1fca7b71bd01ff2b65e704f /iconvdata/cns11643.h
parente2806aaf5d84e7eb63cc11633e9e833d8d1421b5 (diff)
downloadglibc-93a568aaba1d3da3497102dfe1eeb81070a24c1c.zip
glibc-93a568aaba1d3da3497102dfe1eeb81070a24c1c.tar.gz
glibc-93a568aaba1d3da3497102dfe1eeb81070a24c1c.tar.bz2
Update.
* iconvdata/JISX0213.TXT: New file. * iconvdata/jisx0213.h: New file. * iconvdata/jisx0213.c: New file. * iconvdata/euc-jisx0213.c: New file. * iconvdata/shift_jisx0213.c: New file. * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules. * iconvdata/EUC-JISX0213.precomposed: New file. * iconvdata/SHIFT_JISX0213.precomposed: New file. * iconvdata/SHIFT_JISX0213.irreversible: New file. * iconvdata/tst-table-to.c (main): Make it work for encodings for which the "to" direction is stateful. * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213. * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213, SHIFT_JISX0213. (libJISX0213-routines): New variable. (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables. (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so. (LDFLAGS-libJISX0213.so): New variable. (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed, SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible, jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c. 2002-04-15 Bruno Haible <bruno@clisp.org> * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to uint32_t. Update to Unicode 3.2. (from_ucs4, from_ucs4_idx): Update to Unicode 3.2. (BODY for TO_LOOP): Handle the ASCII range specially. * iconvdata/BIG5HKSCS.irreversible: Add one more entry. * iconvdata/testdata/BIG5HKSCS: Remove a character. * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated. 2002-04-15 Bruno Haible <bruno@clisp.org> * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs, __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2. 2002-04-15 Bruno Haible <bruno@clisp.org> * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration. (ucs4_to_cns11643): Update. * iconvdata/cns11643.c: Update to Unicode 3.2. (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab, __cns11643_from_ucs4p2_tab): Regenerated. (__cns11643_from_ucs4p2c_tab): New array. * iconvdata/EUC-TW.irreversible: Remove two entries. 2002-04-15 Bruno Haible <bruno@clisp.org> * locale/C-translit.h.in: Update to Unicode 3.2. Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>, <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>. 2002-04-15 Bruno Haible <bruno@clisp.org>
Diffstat (limited to 'iconvdata/cns11643.h')
-rw-r--r--iconvdata/cns11643.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/iconvdata/cns11643.h b/iconvdata/cns11643.h
index c8aa68c..5117533 100644
--- a/iconvdata/cns11643.h
+++ b/iconvdata/cns11643.h
@@ -1,5 +1,5 @@
/* Access functions for CNS 11643 handling.
- Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
@@ -136,6 +136,7 @@ extern const char __cns11643l1_from_ucs4_tab13[][2];
extern const char __cns11643l1_from_ucs4_tab14[][2];
extern const char __cns11643_from_ucs4p0_tab[][3];
extern const char __cns11643_from_ucs4p2_tab[][3];
+extern const char __cns11643_from_ucs4p2c_tab[][3];
static inline size_t
@@ -225,6 +226,10 @@ ucs4_to_cns11643 (uint32_t wch, char *s, size_t avail)
needed = 3;
cp = __cns11643_from_ucs4p0_tab[ch - 0x3400];
break;
+ case 0xfa28:
+ needed = 3;
+ cp = "\x0f\x58\x4c";
+ break;
case 0xfe30 ... 0xfe6b:
cp = __cns11643l1_from_ucs4_tab13[ch - 0xfe30];
break;
@@ -244,6 +249,10 @@ ucs4_to_cns11643 (uint32_t wch, char *s, size_t avail)
needed = 3;
cp = __cns11643_from_ucs4p2_tab[ch - 0x20000];
break;
+ case 0x2f800 ... 0x2fa1d:
+ needed = 3;
+ cp = __cns11643_from_ucs4p2c_tab[ch - 0x2f800];
+ break;
default:
return __UNKNOWN_10646_CHAR;
}