19static const char UTF8_Japanese[] =
"\xE6\x97\xA5\xE6\x9C\xAC\xE8\xAA\x9E";
45 { __LINE__, {0x000,0xA00}, 1, 0xBEAF,
CP_UTF8, 0,
"a", 1 },
46 { __LINE__, {0x000,0xA00}, 2, 0xBEAF,
CP_UTF8, 0,
"a", 2 },
49 { __LINE__, {0x000,0xA00}, 2, 0xBEAF,
CP_UTF8, 0,
"a", -1 },
50 { __LINE__, {0x000,0xA00}, 2, 0xBEAF,
CP_UTF8, 0,
"a", -2 },
54 { __LINE__, {0x000,0xA00}, 1, 0xBEAF,
CP_UTF8, 0,
"a", 1, 1, {
'a', 0x7F7F}, 2 },
55 { __LINE__, {0x000,0xA00}, 2, 0xBEAF,
CP_UTF8, 0,
"a", 2, 4, {
'a', 0, 0x7F7F}, 3 },
56 { __LINE__, {0x000,0xA00}, 2, 0xBEAF,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"a", 2, 4, {
'a', 0, 0x7F7F}, 3 },
58 { __LINE__, {0x000,0xA00}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP_UTF8, 0,
"a", 2, 1, {
'a', 0x7F7F}, 2 },
59 { __LINE__, {0x000,0xA00}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP_UTF8, 0,
"a", 2, 1, {
'a', 0x7F7F}, 2 },
60 { __LINE__, {0x000,0xA00}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"a", 2, 1, {
'a', 0x7F7F}, 2 },
62 { __LINE__, {0x000,0xA00}, 0,
ERROR_INVALID_PARAMETER,
CP_UTF8, 0,
"", 1, 1, { 0x7F7F }, 1,
TRUE },
63 { __LINE__, {0x000,0xA00}, 0,
ERROR_INVALID_PARAMETER,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"", 1, 1, { 0x7F7F }, 1,
TRUE },
65 { __LINE__, {0x000,0x502}, 1, 0xBEAF,
CP_UTF8, 0,
"\xC0", 2 },
66 { __LINE__, {0x600,0xA00}, 2, 0xBEAF,
CP_UTF8, 0,
"\xC0", 2 },
67 { __LINE__, {0x000,0x502}, 1, 0xBEAF,
CP_UTF8, 0,
"\xC0\xC0\x80", 4 },
68 { __LINE__, {0x600,0xA00}, 4, 0xBEAF,
CP_UTF8, 0,
"\xC0\xC0\x80", 4 },
69 { __LINE__, {0x000,0x502}, 1, 0xBEAF,
CP_UTF8, 0,
"\xE0\xC0", 3 },
70 { __LINE__, {0x600,0xA00}, 3, 0xBEAF,
CP_UTF8, 0,
"\xE0\xC0", 3 },
71 { __LINE__, {0x000,0x502}, 2, 0xBEAF,
CP_UTF8, 0,
"\xE0\x20\xC0", 4 },
72 { __LINE__, {0x600,0xA00}, 4, 0xBEAF,
CP_UTF8, 0,
"\xE0\x20\xC0", 4 },
73 { __LINE__, {0x000,0x502}, 1, 0xBEAF,
CP_UTF8, 0,
"\x82\xA0\x82\xA2", -1 },
74 { __LINE__, {0x600,0xA00}, 5, 0xBEAF,
CP_UTF8, 0,
"\x82\xA0\x82\xA2", -1 },
75 { __LINE__, {0x000,0x502}, 1, 0xBEAF,
CP_UTF8, 0,
"\x82\xA0\x82\xA2\x82", -1 },
76 { __LINE__, {0x600,0xA00}, 6, 0xBEAF,
CP_UTF8, 0,
"\x82\xA0\x82\xA2\x82", -1 },
84 { __LINE__, {0x000,0x502}, 1, 0xBEAF,
CP_UTF8, 0,
"\xC0", 2, 4, {0x00, 0x7F7F, 0x7F7F}, 3},
85 { __LINE__, {0x600,0xA00}, 2, 0xBEAF,
CP_UTF8, 0,
"\xC0", 2, 4, {0xFFFD, 0, 0x7F7F}, 3},
86 { __LINE__, {0x000,0x502}, 1, 0xBEAF,
CP_UTF8, 0,
"\xC0\xC0\x80", 4, 5, {0x00, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 5 },
87 { __LINE__, {0x600,0xA00}, 4, 0xBEAF,
CP_UTF8, 0,
"\xC0\xC0\x80", 4, 5, {0xFFFD, 0xFFFD, 0xFFFD, 0, 0x7F7F}, 5 },
88 { __LINE__, {0x000,0x502}, 1, 0xBEAF,
CP_UTF8, 0,
"\xE0\xC0", 3, 4, {0, 0x7F7F, 0x7F7F, 0x7F7F}, 4 },
89 { __LINE__, {0x600,0xA00}, 3, 0xBEAF,
CP_UTF8, 0,
"\xE0\xC0", 3, 4, {0xFFFD, 0xFFFD, 0, 0x7F7F}, 4 },
90 { __LINE__, {0x000,0x502}, 2, 0xBEAF,
CP_UTF8, 0,
"\xE0\x20\xC0", 4, 5, {0x0020, 0, 0x7F7F, 0x7F7F, 0x7F7F}, 5 },
91 { __LINE__, {0x600,0xA00}, 4, 0xBEAF,
CP_UTF8, 0,
"\xE0\x20\xC0", 4, 5, {0xFFFD, 0x0020, 0xFFFD, 0, 0x7F7F}, 5 },
92 { __LINE__, {0x000,0x502}, 1, 0xBEAF,
CP_UTF8, 0,
"\x82\xA0\x82\xA2", -1, 5, {0, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 5 },
93 { __LINE__, {0x600,0xA00}, 5, 0xBEAF,
CP_UTF8, 0,
"\x82\xA0\x82\xA2", -1, 5, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0}, 5 },
94 { __LINE__, {0x000,0x502}, 1, 0xBEAF,
CP_UTF8, 0,
"\x82\xA0\x82\xA2\x82", -1, 8, {0, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 6 },
95 { __LINE__, {0x600,0xA00}, 6, 0xBEAF,
CP_UTF8, 0,
"\x82\xA0\x82\xA2\x82", -1, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0}, 6 },
96 { __LINE__, {0x000,0x502}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\xC0", 2, 4, {0x7F7F, 0x7F7F, 0x7F7F}, 3 },
97 { __LINE__, {0x600,0xA00}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\xC0", 2, 4, {0xFFFD, 0, 0x7F7F}, 3 },
98 { __LINE__, {0x000,0x502}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\xC0\xC0\x80", 4, 5, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 5 },
99 { __LINE__, {0x600,0xA00}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\xC0\xC0\x80", 4, 5, {0xFFFD, 0xFFFD, 0xFFFD, 0, 0x7F7F}, 5 },
100 { __LINE__, {0x000,0x502}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\xE0\xC0", 3, 4, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 4 },
101 { __LINE__, {0x600,0xA00}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\xE0\xC0", 3, 4, {0xFFFD, 0xFFFD, 0, 0x7F7F}, 4 },
102 { __LINE__, {0x000,0x502}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\xE0\x20\xC0", 4, 5, {0x0020, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 5 },
103 { __LINE__, {0x600,0xA00}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\xE0\x20\xC0", 4, 5, {0xFFFD, 0x0020, 0xFFFD, 0, 0x7F7F}, 5 },
104 { __LINE__, {0x000,0x502}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\x82\xA0\x82\xA2", -1, 6, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 6 },
105 { __LINE__, {0x600,0xA00}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\x82\xA0\x82\xA2", -1, 6, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0, 0x7F7F}, 6 },
106 { __LINE__, {0x000,0x502}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\x82\xA0\x82\xA2\x82", -1, 7, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 7 },
107 { __LINE__, {0x600,0xA00}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\x82\xA0\x82\xA2\x82", -1, 7, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0, 0x7F7F}, 7 },
109 { __LINE__, {0x000,0x502}, 1, 0xBEAF,
CP_UTF8, 0,
"\xC0", 2, 1, {0, 0x7F7F}, 2},
110 { __LINE__, {0x600,0xA00}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP_UTF8, 0,
"\xC0", 2, 1, {0xFFFD, 0x7F7F}, 2},
111 { __LINE__, {0x000,0x502}, 1, 0xBEAF,
CP_UTF8, 0,
"\xC0\xC0\x80", 4, 1, {0, 0x7F7F}, 2 },
112 { __LINE__, {0x600,0xA00}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP_UTF8, 0,
"\xC0\xC0\x80", 4, 1, {0xFFFD, 0x7F7F}, 2 },
113 { __LINE__, {0x000,0x502}, 1, 0xBEAF,
CP_UTF8, 0,
"\xE0\xC0", 3, 1, {0, 0x7F7F}, 2 },
114 { __LINE__, {0x600,0xA00}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP_UTF8, 0,
"\xE0\xC0", 3, 1, {0xFFFD, 0x7F7F}, 2 },
115 { __LINE__, {0x000,0x502}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP_UTF8, 0,
"\xE0\x20\xC0", 4, 1, {0x0020, 0x7F7F}, 2 },
116 { __LINE__, {0x600,0xA00}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP_UTF8, 0,
"\xE0\x20\xC0", 4, 1, {0xFFFD, 0x7F7F}, 2 },
117 { __LINE__, {0x000,0x502}, 1, 0xBEAF,
CP_UTF8, 0,
"\x82\xA0\x82\xA2", -1, 1, {0, 0x7F7F}, 2 },
118 { __LINE__, {0x600,0xA00}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP_UTF8, 0,
"\x82\xA0\x82\xA2", -1, 1, {0xFFFD, 0x7F7F}, 2 },
119 { __LINE__, {0x000,0x502}, 1, 0xBEAF,
CP_UTF8, 0,
"\x82\xA0\x82\xA2\x82", -1, 1, {0, 0x7F7F}, 2 },
120 { __LINE__, {0x600,0xA00}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP_UTF8, 0,
"\x82\xA0\x82\xA2\x82", -1, 1, {0xFFFD, 0x7F7F}, 2 },
121 { __LINE__, {0x000,0x502}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\xC0", 2, 1, {0x7F7F, 0x7F7F}, 2 },
122 { __LINE__, {0x600,0xA00}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\xC0", 2, 1, {0xFFFD, 0x7F7F}, 2 },
123 { __LINE__, {0x000,0x502}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\xC0\xC0\x80", 4, 1, {0x7F7F, 0x7F7F}, 2 },
124 { __LINE__, {0x600,0xA00}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\xC0\xC0\x80", 4, 1, {0xFFFD, 0x7F7F}, 2 },
125 { __LINE__, {0x000,0x502}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\xE0\xC0", 3, 1, {0x7F7F, 0x7F7F}, 2 },
126 { __LINE__, {0x600,0xA00}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\xE0\xC0", 3, 1, {0xFFFD, 0x7F7F}, 2 },
127 { __LINE__, {0x502,0x502}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\xE0\x20\xC0", 4, 1, {0x0020, 0x7F7F}, 2 },
128 { __LINE__, {0x600,0xA00}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\xE0\x20\xC0", 4, 1, {0xFFFD, 0x7F7F}, 2 },
129 { __LINE__, {0x000,0x502}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\x82\xA0\x82\xA2", -1, 1, {0x7F7F, 0x7F7F}, 2 },
130 { __LINE__, {0x600,0xA00}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\x82\xA0\x82\xA2", -1, 1, {0xFFFD, 0x7F7F}, 2 },
131 { __LINE__, {0x000,0x502}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\x82\xA0\x82\xA2\x82", -1, 1, {0x7F7F, 0x7F7F}, 2 },
132 { __LINE__, {0x600,0xA00}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP_UTF8,
MB_ERR_INVALID_CHARS,
"\x82\xA0\x82\xA2\x82", -1, 1, {0xFFFD, 0x7F7F}, 2 },
137 { __LINE__, {0x000,0xA00}, 4, 0xBEAF,
CP_UTF8, 0,
UTF8_Japanese,
sizeof(
UTF8_Japanese), 4, {0x65E5, 0x672C, 0x8A9E, 0, 0x7F7F}, 5 },
138 { __LINE__, {0x000,0xA00}, 4, 0xBEAF,
CP_UTF8,
MB_ERR_INVALID_CHARS,
UTF8_Japanese,
sizeof(
UTF8_Japanese), 4, {0x65E5, 0x672C, 0x8A9E, 0, 0x7F7F}, 5 },
140 { __LINE__, {0x000,0xA00}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP_UTF8, 0,
UTF8_Japanese,
sizeof(
UTF8_Japanese), 1, {0x65E5, 0x7F7F}, 2 },
141 { __LINE__, {0x000,0xA00}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP_UTF8,
MB_ERR_INVALID_CHARS,
UTF8_Japanese,
sizeof(
UTF8_Japanese), 1, {0x65E5, 0x7F7F}, 2 },
143 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
UTF8_Japanese, 1, 4, {0x7F7F, 0x7F7F}, 2 },
144 { __LINE__, {0x600,0xA00}, 1, 0xBEAF,
CP_UTF8, 0,
UTF8_Japanese, 1, 4, {0xFFFD, 0x7F7F}, 2 },
145 { __LINE__, {0x502,0x502}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP_UTF8,
MB_ERR_INVALID_CHARS,
UTF8_Japanese, 1, 4, {0x7F7F, 0x7F7F}, 2 },
146 { __LINE__, {0x600,0xA00}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP_UTF8,
MB_ERR_INVALID_CHARS,
UTF8_Japanese, 1, 4, {0xFFFD, 0x7F7F}, 2 },
151 { __LINE__, {0x000,0xA00}, 4, 0xBEAF,
CP932, 0,
SJIS_Japanese,
sizeof(
SJIS_Japanese), 4, {0x65E5, 0x672C, 0x8A9E, 0, 0x7F7F}, 5 },
152 { __LINE__, {0x000,0xA00}, 4, 0xBEAF,
CP932,
MB_ERR_INVALID_CHARS,
SJIS_Japanese,
sizeof(
SJIS_Japanese), 4, {0x65E5, 0x672C, 0x8A9E, 0, 0x7F7F}, 5 },
154 { __LINE__, {0x000,0xA00}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP932, 0,
SJIS_Japanese,
sizeof(
SJIS_Japanese), 1, {0x65E5, 0x7F7F}, 2 },
155 { __LINE__, {0x000,0xA00}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP932,
MB_ERR_INVALID_CHARS,
SJIS_Japanese,
sizeof(
SJIS_Japanese), 1, {0x65E5, 0x7F7F}, 2 },
157 { __LINE__, {0x000,0x502}, 1, 0xBEAF,
CP932, 0,
SJIS_Japanese, 1, 4, {0, 0x7F7F}, 2 },
158 { __LINE__, {0x600,0xA00}, 1, 0xBEAF,
CP932, 0,
SJIS_Japanese, 1, 4, {0x30FB, 0x7F7F}, 2 },
159 { __LINE__, {0x000,0xA00}, 0,
ERROR_NO_UNICODE_TRANSLATION,
CP932,
MB_ERR_INVALID_CHARS,
SJIS_Japanese, 1, 4, {0x7F7F, 0x7F7F}, 2 },
161 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xF8\xA3\xA3\xA3\xA3", 1, 8, {0x7F7F, 0x7F7F}, 2 },
162 { __LINE__, {0x600,0xA00}, 1, 0xBEAF,
CP_UTF8, 0,
"\xF8\xA3\xA3\xA3\xA3", 1, 8, {0xFFFD, 0x7F7F}, 2 },
163 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xF8\xA3\xA3\xA3\xA3", 2, 8, {0x7F7F, 0x7F7F, 0x7F7F}, 3 },
164 { __LINE__, {0x600,0xA00}, 2, 0xBEAF,
CP_UTF8, 0,
"\xF8\xA3\xA3\xA3\xA3", 2, 8, {0xFFFD, 0xFFFD, 0x7F7F}, 3 },
165 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xF8\xA3\xA3\xA3\xA3", 3, 8, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 4 },
166 { __LINE__, {0x600,0xA00}, 3, 0xBEAF,
CP_UTF8, 0,
"\xF8\xA3\xA3\xA3\xA3", 3, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0x7F7F}, 4 },
167 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xF8\xA3\xA3\xA3\xA3", 4, 8, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 5 },
168 { __LINE__, {0x600,0xA00}, 4, 0xBEAF,
CP_UTF8, 0,
"\xF8\xA3\xA3\xA3\xA3", 4, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0x7F7F}, 5 },
169 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xF8\xA3\xA3\xA3\xA3", 5, 8, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 6 },
170 { __LINE__, {0x600,0xA00}, 5, 0xBEAF,
CP_UTF8, 0,
"\xF8\xA3\xA3\xA3\xA3", 5, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0x7F7F}, 6 },
171 { __LINE__, {0x000,0x502}, 1, 0xBEAF,
CP_UTF8, 0,
"\xF8\xA3\xA3\xA3\xA3", 6, 8, {0, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 6 },
172 { __LINE__, {0x600,0xA00}, 6, 0xBEAF,
CP_UTF8, 0,
"\xF8\xA3\xA3\xA3\xA3", 6, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0}, 6 },
174 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFC\xA3\xA3\xA3\xA3\xA3", 1, 8, {0x7F7F, 0x7F7F}, 2 },
175 { __LINE__, {0x600,0xA00}, 1, 0xBEAF,
CP_UTF8, 0,
"\xFC\xA3\xA3\xA3\xA3\xA3", 1, 8, {0xFFFD, 0x7F7F}, 2 },
176 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFC\xA3\xA3\xA3\xA3\xA3", 2, 8, {0x7F7F, 0x7F7F, 0x7F7F}, 3 },
177 { __LINE__, {0x600,0xA00}, 2, 0xBEAF,
CP_UTF8, 0,
"\xFC\xA3\xA3\xA3\xA3\xA3", 2, 8, {0xFFFD, 0xFFFD, 0x7F7F}, 3 },
178 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFC\xA3\xA3\xA3\xA3\xA3", 3, 8, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 4 },
179 { __LINE__, {0x600,0xA00}, 3, 0xBEAF,
CP_UTF8, 0,
"\xFC\xA3\xA3\xA3\xA3\xA3", 3, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0x7F7F}, 4 },
180 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFC\xA3\xA3\xA3\xA3\xA3", 4, 8, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 5 },
181 { __LINE__, {0x600,0xA00}, 4, 0xBEAF,
CP_UTF8, 0,
"\xFC\xA3\xA3\xA3\xA3\xA3", 4, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0x7F7F}, 5 },
182 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFC\xA3\xA3\xA3\xA3\xA3", 5, 8, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 6 },
183 { __LINE__, {0x600,0xA00}, 5, 0xBEAF,
CP_UTF8, 0,
"\xFC\xA3\xA3\xA3\xA3\xA3", 5, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0x7F7F}, 6 },
184 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFC\xA3\xA3\xA3\xA3\xA3", 6, 8, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 7 },
185 { __LINE__, {0x600,0xA00}, 6, 0xBEAF,
CP_UTF8, 0,
"\xFC\xA3\xA3\xA3\xA3\xA3", 6, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0x7F7F}, 7 },
186 { __LINE__, {0x000,0x502}, 1, 0xBEAF,
CP_UTF8, 0,
"\xFC\xA3\xA3\xA3\xA3\xA3", 7, 8, {0, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 7 },
187 { __LINE__, {0x600,0xA00}, 7, 0xBEAF,
CP_UTF8, 0,
"\xFC\xA3\xA3\xA3\xA3\xA3", 7, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0}, 7 },
189 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFE\xA3\xA3\xA3\xA3\xA3\xA3", 1, 8, {0x7F7F, 0x7F7F}, 2 },
190 { __LINE__, {0x600,0xA00}, 1, 0xBEAF,
CP_UTF8, 0,
"\xFE\xA3\xA3\xA3\xA3\xA3\xA3", 1, 8, {0xFFFD, 0x7F7F}, 2 },
191 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFE\xA3\xA3\xA3\xA3\xA3\xA3", 2, 8, {0x7F7F, 0x7F7F, 0x7F7F}, 3 },
192 { __LINE__, {0x600,0xA00}, 2, 0xBEAF,
CP_UTF8, 0,
"\xFE\xA3\xA3\xA3\xA3\xA3\xA3", 2, 8, {0xFFFD, 0xFFFD, 0x7F7F}, 3 },
193 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFE\xA3\xA3\xA3\xA3\xA3\xA3", 3, 8, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 4 },
194 { __LINE__, {0x600,0xA00}, 3, 0xBEAF,
CP_UTF8, 0,
"\xFE\xA3\xA3\xA3\xA3\xA3\xA3", 3, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0x7F7F}, 4 },
195 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFE\xA3\xA3\xA3\xA3\xA3\xA3", 4, 8, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 5 },
196 { __LINE__, {0x600,0xA00}, 4, 0xBEAF,
CP_UTF8, 0,
"\xFE\xA3\xA3\xA3\xA3\xA3\xA3", 4, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0x7F7F}, 5 },
197 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFE\xA3\xA3\xA3\xA3\xA3\xA3", 5, 8, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 6 },
198 { __LINE__, {0x600,0xA00}, 5, 0xBEAF,
CP_UTF8, 0,
"\xFE\xA3\xA3\xA3\xA3\xA3\xA3", 5, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0x7F7F}, 6 },
199 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFE\xA3\xA3\xA3\xA3\xA3\xA3", 6, 8, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 7 },
200 { __LINE__, {0x600,0xA00}, 6, 0xBEAF,
CP_UTF8, 0,
"\xFE\xA3\xA3\xA3\xA3\xA3\xA3", 6, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0x7F7F}, 7 },
201 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFE\xA3\xA3\xA3\xA3\xA3\xA3", 7, 8, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 8 },
202 { __LINE__, {0x600,0xA00}, 7, 0xBEAF,
CP_UTF8, 0,
"\xFE\xA3\xA3\xA3\xA3\xA3\xA3", 7, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0x7F7F}, 8 },
203 { __LINE__, {0x000,0x502}, 1, 0xBEAF,
CP_UTF8, 0,
"\xFE\xA3\xA3\xA3\xA3\xA3\xA3", 8, 8, {0, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 8 },
204 { __LINE__, {0x600,0xA00}, 8, 0xBEAF,
CP_UTF8, 0,
"\xFE\xA3\xA3\xA3\xA3\xA3\xA3", 8, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0}, 8 },
206 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFF\xA3\xA3\xA3\xA3\xA3\xA3\xA3", 1, 8, {0x7F7F, 0x7F7F}, 2 },
207 { __LINE__, {0x600,0xA00}, 1, 0xBEAF,
CP_UTF8, 0,
"\xFF\xA3\xA3\xA3\xA3\xA3\xA3\xA3", 1, 8, {0xFFFD, 0x7F7F}, 2 },
208 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFF\xA3\xA3\xA3\xA3\xA3\xA3\xA3", 2, 8, {0x7F7F, 0x7F7F, 0x7F7F}, 3 },
209 { __LINE__, {0x600,0xA00}, 2, 0xBEAF,
CP_UTF8, 0,
"\xFF\xA3\xA3\xA3\xA3\xA3\xA3\xA3", 2, 8, {0xFFFD, 0xFFFD, 0x7F7F}, 3 },
210 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFF\xA3\xA3\xA3\xA3\xA3\xA3\xA3", 3, 8, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 4 },
211 { __LINE__, {0x600,0xA00}, 3, 0xBEAF,
CP_UTF8, 0,
"\xFF\xA3\xA3\xA3\xA3\xA3\xA3\xA3", 3, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0x7F7F}, 4 },
212 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFF\xA3\xA3\xA3\xA3\xA3\xA3\xA3", 4, 8, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 5 },
213 { __LINE__, {0x600,0xA00}, 4, 0xBEAF,
CP_UTF8, 0,
"\xFF\xA3\xA3\xA3\xA3\xA3\xA3\xA3", 4, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0x7F7F}, 5 },
214 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFF\xA3\xA3\xA3\xA3\xA3\xA3\xA3", 5, 8, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 6 },
215 { __LINE__, {0x600,0xA00}, 5, 0xBEAF,
CP_UTF8, 0,
"\xFF\xA3\xA3\xA3\xA3\xA3\xA3\xA3", 5, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0x7F7F}, 6 },
216 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFF\xA3\xA3\xA3\xA3\xA3\xA3\xA3", 6, 8, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 7 },
217 { __LINE__, {0x600,0xA00}, 6, 0xBEAF,
CP_UTF8, 0,
"\xFF\xA3\xA3\xA3\xA3\xA3\xA3\xA3", 6, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0x7F7F}, 7 },
218 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFF\xA3\xA3\xA3\xA3\xA3\xA3\xA3", 7, 8, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 8 },
219 { __LINE__, {0x600,0xA00}, 7, 0xBEAF,
CP_UTF8, 0,
"\xFF\xA3\xA3\xA3\xA3\xA3\xA3\xA3", 7, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0x7F7F}, 8 },
220 { __LINE__, {0x502,0x502}, 0,
ERROR_SUCCESS,
CP_UTF8, 0,
"\xFF\xA3\xA3\xA3\xA3\xA3\xA3\xA3", 8, 8, {0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 9 },
221 { __LINE__, {0x600,0xA00}, 8, 0xBEAF,
CP_UTF8, 0,
"\xFF\xA3\xA3\xA3\xA3\xA3\xA3\xA3", 8, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0x7F7F}, 9 },
222 { __LINE__, {0x000,0x502}, 1, 0xBEAF,
CP_UTF8, 0,
"\xFF\xA3\xA3\xA3\xA3\xA3\xA3\xA3", 9, 8, {0, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F, 0x7F7F}, 9 },
223 { __LINE__, {0x600,0xA00}, 0,
ERROR_INSUFFICIENT_BUFFER,
CP_UTF8, 0,
"\xFF\xA3\xA3\xA3\xA3\xA3\xA3\xA3", 9, 8, {0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0x7F7F}, 9 },
232 if ((OsVersion < pEntry->VersionRange[0]) ||
235 skip(
"Skipping entry from line %u (Version range %lx-%lx, current %lx)\n",
255 "Line %d: DestLen was shorter than (CheckLen - 1)\n",
pEntry->LineNo);
276 ok(
ret ==
pEntry->Return,
"Line %d: ret expected %d, got %d\n",
281 "Line %d: Wrong last error. Expected %lu, got %lu\n",
289 ok(
Buffer[
i] ==
pEntry->CheckDest[
i],
"Line %d: Buffer[%d] expected %d, got %d\n",
300 vi.dwOSVersionInfoSize =
sizeof(
vi);
303 skip(
"Failed to get OS version!\n");
static const ENTRY Entries[]
static const char UTF8_Japanese[]
static void TestEntry(const ENTRY *pEntry)
static const char SJIS_Japanese[]
#define ERROR_INSUFFICIENT_BUFFER
NTSTATUS NTAPI RtlGetVersion(IN OUT PRTL_OSVERSIONINFOW lpVersionInformation)
#define ERROR_INVALID_PARAMETER
#define MultiByteToWideChar
#define FillMemory(BUF, SIZ, MASK)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define MB_ERR_INVALID_CHARS
struct msdos_volume_info vi
WCHAR CheckDest[MAX_BUFFER]
DWORD WINAPI GetLastError(void)
#define ERROR_NO_UNICODE_TRANSLATION