Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: icu46/source/data/mappings/noop-cns-11643.ucm

Issue 6010003: Apply the converter patches for ICU 4.2.1 to ICU 4.6... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « icu46/source/data/mappings/iso-8859_16-2001.ucm ('k') | icu46/source/data/mappings/noop-gb2312_gl.ucm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: icu46/source/data/mappings/noop-cns-11643.ucm
===================================================================
--- icu46/source/data/mappings/noop-cns-11643.ucm (revision 0)
+++ icu46/source/data/mappings/noop-cns-11643.ucm (revision 0)
@@ -0,0 +1,31 @@
+# *******************************************************************************
+# *
+# * Copyright (C) 2009, International Business Machines
+# * Corporation and others. All Rights Reserved.
+# *
+# *******************************************************************************
+#
+# File created on Dec 2, 2009
+#
+# This is not a real CNS-11643 table, but a "fake" table to return U+FFFD
+# for every byte sequence valid in ISO-2022-CN(-Ext). Chrome and Android
+# do not want to include the real table for charsets that are extremely
+# rare, if used at all. However, not supporting ISO-2022-CN(-Ext) gets
+# them vulernable to a security issue. By including this 'fake' table,
+# they can be protected while increasing the ICU data size by ~ 10kB.
+<code_set_name> "NOOP-CNS-11643"
+<char_name_mask> "AXXXX"
+<mb_cur_max> 3
+<mb_cur_min> 3
+<uconv_class> "MBCS"
+<subchar> \x81\x7e\x7e
+
+# (state 0) lead byte, selects the CNS plane (0x80 + plane number)
+<icu:state> 81-90:1
+
+# (1..2) middle and trail bytes for valid but unassigned sequences
+<icu:state> 21-7e:2
+<icu:state> 21-7e.u
+
+CHARMAP
+END CHARMAP
Property changes on: icu46/source/data/mappings/noop-cns-11643.ucm
___________________________________________________________________
Added: svn:eol-style
+ native
« no previous file with comments | « icu46/source/data/mappings/iso-8859_16-2001.ucm ('k') | icu46/source/data/mappings/noop-gb2312_gl.ucm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698