• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#________________________________________________________________________
2#
3# (C) COPYRIGHT International Business Machines Corp. 2009
4#     All Rights Reserved
5#
6#________________________________________________________________________
7#
8#       Name:    "Fake" Unicode to ISO-IR-165 table
9#       Date:    December 2, 2009
10#
11# This is not a real ISO-IR-165 table, but a "fake" table to return U+FFFD
12# for every byte sequence valid in ISO-IR-165. Chrome and Android
13# do not want to include the real table for ISO-1022-CN(-Ext) that are
14# extremely rare, if used at all. However, the lack of support gets
15# them vulernable to a security issue. By including this 'fake' table
16# and two others, they can be protected while increasing the ICU data size
17# by only ~ 10kB.
18<code_set_name>         "noop-iso-ir-165"
19<char_name_mask>        "AXXXX"
20<mb_cur_max>            2
21<mb_cur_min>            2
22<uconv_class>           "MBCS"
23<subchar>               \x7e\x7e
24<icu:state>             0-20:2, 21-7e:1, 7f-ff:2
25<icu:state>             21-7e.u
26<icu:state>
27#
28CHARMAP
29END CHARMAP
30