1# *******************************************************************************
2# *
3# *   Copyright (C) 2009, International Business Machines
4# *   Corporation and others.  All Rights Reserved.
5# *
6# *******************************************************************************
7#
8# File created on   Dec 2, 2009
9#
10# This is not a real CNS-11643 table, but a "fake" table to return U+FFFD
11# for every byte sequence valid in ISO-2022-CN(-Ext). Chrome and Android
12# do not want to include the real table for charsets that are extremely
13# rare, if used at all. However, not supporting ISO-2022-CN(-Ext) gets
14# them vulernable to a security issue. By including this 'fake' table,
15# they can be protected while increasing the ICU data size by ~ 10kB.
16<code_set_name>       "NOOP-CNS-11643"
17<char_name_mask>      "AXXXX"
18<mb_cur_max>          3
19<mb_cur_min>          3
20<uconv_class>         "MBCS"
21<subchar>             \x81\x7e\x7e
22
23# (state 0) lead byte, selects the CNS plane (0x80 + plane number)
24<icu:state>           81-90:1
25
26# (1..2) middle and trail bytes for valid but unassigned sequences
27<icu:state>           21-7e:2
28<icu:state>           21-7e.u
29
30CHARMAP
31END CHARMAP
32