+ }
+ {
+ static const UChar iso_2022_cn_inputText8[]={
+ 0x3000,
+ 0xD84D, 0xDC56,
+ 0x3001,
+ 0xD84D, 0xDC56,
+ 0xDBFF, 0xDFFF,
+ 0x0042,
+ 0x0902};
+ static const uint8_t to_iso_2022_cn8_v2[]={
+ 0x1b, 0x24, 0x29, 0x41, 0x0e, 0x21, 0x21,
+ 0x0f, 0x5c, 0x32, 0x33, 0x34, 0x35, 0x36, 0x20,
+ 0x0e, 0x21, 0x22,
+ 0x0f, 0x5c, 0x32, 0x33, 0x34, 0x35, 0x36, 0x20,
+ 0x5c, 0x31, 0x30, 0x46, 0x46, 0x46, 0x46, 0x20,
+ 0x42,
+ 0x5c, 0x39, 0x30, 0x32, 0x20
+ };
+ static const int32_t from_iso_2022_cnOffs8_v2 [] ={
+ 0, 0, 0, 0, 0, 0, 0,
+ 1, 1, 1, 1, 1, 1, 1, 1,
+ 3, 3, 3,
+ 4, 4, 4, 4, 4, 4, 4, 4,
+ 6, 6, 6, 6, 6, 6, 6, 6,
+ 8,
+ 9, 9, 9, 9, 9
+ };
+ if(!testConvertFromUnicodeWithContext(iso_2022_cn_inputText8, UPRV_LENGTHOF(iso_2022_cn_inputText8),
+ to_iso_2022_cn8_v2, UPRV_LENGTHOF(to_iso_2022_cn8_v2), "iso-2022-cn",
+ UCNV_FROM_U_CALLBACK_ESCAPE, from_iso_2022_cnOffs8_v2, NULL, 0,UCNV_ESCAPE_CSS2,U_ZERO_ERROR ))
+ log_err("u-> iso-2022-cn with sub & UCNV_ESCAPE_CSS2 did not match.\n");
+