author | ohair |
Tue, 25 May 2010 15:58:33 -0700 | |
changeset 5506 | 202f599c92aa |
parent 5167 | dbd299f8fdae |
child 29121 | ab151045a89d |
permissions | -rw-r--r-- |
4817 | 1 |
/* |
5506 | 2 |
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. |
4817 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
5506 | 19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 |
* or visit www.oracle.com if you need additional information or have any |
|
21 |
* questions. |
|
4817 | 22 |
*/ |
23 |
||
24 |
/* @test |
|
5167
dbd299f8fdae
6902790: Converting/displaying HKSCs characters issue on Vista and Windows7
sherman
parents:
4817
diff
changeset
|
25 |
* @bug 4473201 4696726 4652234 4482298 4784385 4966197 4267354 5015668 6911753 |
4817 | 26 |
* @summary Check that registered charsets are actually registered |
27 |
*/ |
|
28 |
||
29 |
import java.io.*; |
|
30 |
import java.nio.*; |
|
31 |
import java.nio.charset.*; |
|
32 |
import java.util.*; |
|
33 |
||
34 |
public class RegisteredCharsets { |
|
35 |
||
36 |
static String [] ianaRegistered = { |
|
37 |
"US-ASCII", "UTF8", "Big5", "EUC-JP", |
|
38 |
"GBK", "GB18030", "ISO-2022-KR", "ISO-2022-JP", |
|
39 |
"GB2312", // IANA preferred name for "EUC-CN" |
|
40 |
"ISO-8859-1", "ISO-8859-2", "ISO-8859-3", |
|
41 |
"ISO-8859-4", "ISO-8859-5", "ISO-8859-6", |
|
42 |
"ISO-8859-7", "ISO-8859-8", "ISO-8859-9", |
|
43 |
"ISO-8859-13", "ISO-8859-15", "windows-1251", |
|
44 |
"windows-1252", "windows-1253", "windows-1254", |
|
45 |
"windows-1255", "windows-1256", "windows-31j", |
|
46 |
"Shift_JIS", "JIS_X0201", "JIS_X0212-1990", |
|
47 |
"TIS-620", "Big5-HKSCS", |
|
48 |
"ISO-2022-CN", |
|
49 |
"IBM850", |
|
50 |
"IBM852", |
|
51 |
"IBM855", |
|
52 |
"IBM857", |
|
53 |
"IBM860", |
|
54 |
"IBM861", |
|
55 |
"IBM862", |
|
56 |
"IBM863", |
|
57 |
"IBM864", |
|
58 |
"IBM865", |
|
59 |
"IBM866", |
|
60 |
"IBM868", |
|
61 |
"IBM869", |
|
62 |
"IBM437", |
|
63 |
"IBM775", |
|
64 |
"IBM037", |
|
65 |
"IBM1026", |
|
66 |
"IBM273", |
|
67 |
"IBM277", |
|
68 |
"IBM278", |
|
69 |
"IBM280", |
|
70 |
"IBM284", |
|
71 |
"IBM285", |
|
72 |
"IBM297", |
|
73 |
"IBM420", |
|
74 |
"IBM424", |
|
75 |
"IBM500", |
|
76 |
"IBM-Thai", |
|
77 |
"IBM870", |
|
78 |
"IBM871", |
|
79 |
"IBM918", |
|
80 |
"IBM1047", |
|
81 |
"IBM01140", |
|
82 |
"IBM01141", |
|
83 |
"IBM01142", |
|
84 |
"IBM01143", |
|
85 |
"IBM01144", |
|
86 |
"IBM01145", |
|
87 |
"IBM01146", |
|
88 |
"IBM01147", |
|
89 |
"IBM01148", |
|
90 |
"IBM01149", |
|
91 |
"IBM00858" }; |
|
92 |
||
93 |
static String [] ianaUnRegistered = { |
|
94 |
"x-EUC-TW", "x-ISCII91", |
|
95 |
"x-windows-949", "x-windows-950", |
|
96 |
"x-mswin-936", "x-JIS0208", |
|
97 |
"x-ISO-8859-11", |
|
98 |
"x-windows-874", |
|
99 |
"x-PCK", "x-JISAutoDetect", "x-Johab", |
|
100 |
"x-MS950-HKSCS", |
|
101 |
"x-Big5-Solaris", |
|
102 |
"x-ISO-2022-CN-CNS", |
|
103 |
"x-ISO-2022-CN-GB", |
|
104 |
"x-MacArabic", |
|
105 |
"x-MacCentralEurope", |
|
106 |
"x-MacCroatian", |
|
107 |
"x-MacCyrillic", |
|
108 |
"x-MacDingbat", |
|
109 |
"x-MacGreek", |
|
110 |
"x-MacHebrew", |
|
111 |
"x-MacIceland", |
|
112 |
"x-MacRoman", |
|
113 |
"x-MacRomania", |
|
114 |
"x-MacSymbol", |
|
115 |
"x-MacThai", |
|
116 |
"x-MacTurkish", |
|
117 |
"x-MacUkraine", |
|
118 |
"x-IBM942", |
|
119 |
"x-IBM942C", |
|
120 |
"x-IBM943", |
|
121 |
"x-IBM943C", |
|
122 |
"x-IBM948", |
|
123 |
"x-IBM950", |
|
124 |
"x-IBM930", |
|
125 |
"x-IBM935", |
|
126 |
"x-IBM937", |
|
127 |
"x-IBM856", |
|
128 |
"x-IBM874", |
|
129 |
"x-IBM737", |
|
130 |
"x-IBM1006", |
|
131 |
"x-IBM1046", |
|
132 |
"x-IBM1098", |
|
133 |
"x-IBM1025", |
|
134 |
"x-IBM1112", |
|
135 |
"x-IBM1122", |
|
136 |
"x-IBM1123", |
|
137 |
"x-IBM1124", |
|
138 |
"x-IBM875", |
|
139 |
"x-IBM921", |
|
140 |
"x-IBM922", |
|
141 |
"x-IBM1097", |
|
142 |
"x-IBM949", |
|
143 |
"x-IBM949C", |
|
144 |
"x-IBM939", |
|
145 |
"x-IBM933", |
|
146 |
"x-IBM1381", |
|
147 |
"x-IBM1383", |
|
148 |
"x-IBM970", |
|
149 |
"x-IBM964", |
|
150 |
"x-IBM33722", |
|
151 |
"x-IBM1006", |
|
152 |
"x-IBM1046", |
|
153 |
"x-IBM1097", |
|
154 |
"x-IBM1098", |
|
155 |
"x-IBM1112", |
|
156 |
"x-IBM1122", |
|
157 |
"x-IBM1123", |
|
158 |
"x-IBM1124", |
|
159 |
"x-IBM33722", |
|
160 |
"x-IBM737", |
|
161 |
"x-IBM856", |
|
162 |
"x-IBM874", |
|
163 |
"x-IBM875", |
|
164 |
"x-IBM922", |
|
165 |
"x-IBM933", |
|
166 |
"x-IBM964" }; |
|
167 |
||
168 |
static void check(String csn, boolean testRegistered) throws Exception { |
|
169 |
if (!Charset.forName(csn).isRegistered() && testRegistered) |
|
170 |
throw new Exception("Not registered: " + csn); |
|
171 |
else if (Charset.forName(csn).isRegistered() && !testRegistered) |
|
172 |
throw new Exception("Registered: " + csn + "should be unregistered"); |
|
173 |
} |
|
174 |
||
175 |
static void aliasCheck(String canonicalName, String[] aliasNames) throws Exception |
|
176 |
{ |
|
177 |
for (int k = 0; k < aliasNames.length; k++ ) { |
|
178 |
Charset cs = Charset.forName(aliasNames[k]); |
|
179 |
if (!cs.name().equals(canonicalName)) { |
|
180 |
throw new Exception("Unexpected Canonical name " + canonicalName); |
|
181 |
} |
|
182 |
} |
|
183 |
} |
|
184 |
||
185 |
public static void main(String[] args) throws Exception { |
|
186 |
||
187 |
for (int i = 0; i < ianaRegistered.length ; i++) |
|
188 |
check(ianaRegistered[i], true); |
|
189 |
||
190 |
for (int i = 0; i < ianaUnRegistered.length ; i++) |
|
191 |
check(ianaUnRegistered[i], false); |
|
192 |
||
193 |
// Check aliases registered with IANA for all NIO supported |
|
194 |
// Charset implementations. |
|
195 |
// |
|
196 |
// The aliases below are in sync with the IANA registered charset |
|
197 |
// document at: http://www.iana.org/assignments/character-sets |
|
198 |
// Last updated 7/25/2002 |
|
199 |
||
200 |
aliasCheck("US-ASCII", |
|
201 |
new String[] {"ascii","ANSI_X3.4-1968", |
|
202 |
"iso-ir-6","ANSI_X3.4-1986", "ISO_646.irv:1991", |
|
203 |
"ASCII", "ISO646-US","us","IBM367","cp367", |
|
204 |
"csASCII", "default"}); |
|
205 |
||
206 |
aliasCheck("UTF-8", |
|
207 |
new String[] { |
|
208 |
"UTF8", |
|
209 |
"unicode-1-1-utf-8" |
|
210 |
}); |
|
211 |
||
212 |
aliasCheck("UTF-16", |
|
213 |
new String[] { |
|
214 |
"UTF_16", |
|
215 |
"utf16" |
|
216 |
}); |
|
217 |
||
218 |
aliasCheck("UTF-16BE", |
|
219 |
new String[] { |
|
220 |
"UTF_16BE", |
|
221 |
"ISO-10646-UCS-2", |
|
222 |
"X-UTF-16BE", |
|
223 |
"UnicodeBigUnmarked" |
|
224 |
}); |
|
225 |
||
226 |
aliasCheck("UTF-16LE", |
|
227 |
new String[] { |
|
228 |
"UTF_16LE", |
|
229 |
"X-UTF-16LE", |
|
230 |
"UnicodeLittleUnmarked" |
|
231 |
}); |
|
232 |
||
233 |
aliasCheck("Big5", |
|
234 |
new String[] { |
|
235 |
"csBig5" |
|
236 |
}); |
|
237 |
||
238 |
aliasCheck("Big5-HKSCS", |
|
239 |
new String[] { |
|
240 |
"Big5_HKSCS", |
|
241 |
"big5hk", |
|
242 |
"big5-hkscs", |
|
243 |
"big5hkscs" |
|
244 |
}); |
|
245 |
||
246 |
aliasCheck("x-MS950-HKSCS", |
|
247 |
new String[] { |
|
248 |
"MS950_HKSCS" |
|
249 |
}); |
|
250 |
||
251 |
aliasCheck("GB18030", |
|
252 |
new String[] { |
|
253 |
"gb18030-2000" |
|
254 |
}); |
|
255 |
||
256 |
aliasCheck("ISO-2022-KR", new String[] {"csISO2022KR"}); |
|
257 |
aliasCheck("ISO-2022-JP", new String[] {"csISO2022JP"}); |
|
258 |
aliasCheck("EUC-KR", new String[] { "csEUCKR"}); |
|
259 |
aliasCheck("ISO-8859-1", |
|
260 |
new String[] { |
|
261 |
||
262 |
// IANA aliases |
|
263 |
"iso-ir-100", |
|
264 |
"ISO_8859-1", |
|
265 |
"latin1", |
|
266 |
"l1", |
|
267 |
"IBM819", |
|
268 |
"cp819", |
|
269 |
"csISOLatin1", |
|
270 |
||
271 |
// JDK historical aliases |
|
272 |
"819", |
|
273 |
"IBM-819", |
|
274 |
"ISO8859_1", |
|
275 |
"ISO_8859-1:1987", |
|
276 |
"ISO_8859_1", |
|
277 |
"8859_1", |
|
278 |
"ISO8859-1", |
|
279 |
||
280 |
}); |
|
281 |
||
282 |
aliasCheck("ISO-8859-2", |
|
283 |
new String[] { |
|
284 |
"ISO_8859-2", |
|
285 |
"ISO_8859-2:1987", |
|
286 |
"iso-ir-101", |
|
287 |
"latin2", |
|
288 |
"l2", |
|
289 |
"8859_2", |
|
290 |
"iso_8859-2:1987", |
|
291 |
"iso8859-2", |
|
292 |
"ibm912", |
|
293 |
"ibm-912", |
|
294 |
"cp912", |
|
295 |
"912", |
|
296 |
"csISOLatin2"}); |
|
297 |
||
298 |
aliasCheck("ISO-8859-3", |
|
299 |
new String[] {"latin3", |
|
300 |
"ISO_8859-3:1988", |
|
301 |
"iso-ir-109", |
|
302 |
"l3", |
|
303 |
"8859_3", |
|
304 |
"iso_8859-3:1988", |
|
305 |
"iso8859-3", |
|
306 |
"ibm913", |
|
307 |
"ibm-913", |
|
308 |
"cp913", |
|
309 |
"913", |
|
310 |
"csISOLatin3"}); |
|
311 |
||
312 |
aliasCheck("ISO-8859-4", |
|
313 |
new String[] {"csISOLatin4", |
|
314 |
"ISO_8859-4:1988", |
|
315 |
"iso-ir-110", |
|
316 |
"latin4", |
|
317 |
"8859_4", |
|
318 |
"iso_8859-4:1988", |
|
319 |
"iso8859-4", |
|
320 |
"ibm914", |
|
321 |
"ibm-914", |
|
322 |
"cp914", |
|
323 |
"914", |
|
324 |
"l4"}); |
|
325 |
||
326 |
aliasCheck("ISO-8859-5", |
|
327 |
new String[] { |
|
328 |
"iso8859_5", // JDK historical |
|
329 |
"8859_5", |
|
330 |
"iso-ir-144", |
|
331 |
"ISO_8859-5", |
|
332 |
"ISO_8859-5:1988", |
|
333 |
"ISO8859-5", |
|
334 |
"cyrillic", |
|
335 |
"ibm915", |
|
336 |
"ibm-915", |
|
337 |
"915", |
|
338 |
"cp915", |
|
339 |
"csISOLatinCyrillic" |
|
340 |
}); |
|
341 |
||
342 |
aliasCheck("ISO-8859-6", |
|
343 |
new String[] {"ISO_8859-6:1987", |
|
344 |
"iso-ir-127", |
|
345 |
"ISO_8859-6", |
|
346 |
"ECMA-114", |
|
347 |
"ASMO-708", |
|
348 |
"arabic", |
|
349 |
"8859_6", |
|
350 |
"iso_8859-6:1987", |
|
351 |
"iso8859-6", |
|
352 |
"ibm1089", |
|
353 |
"ibm-1089", |
|
354 |
"cp1089", |
|
355 |
"1089", |
|
356 |
"csISOLatinArabic"}); |
|
357 |
||
358 |
aliasCheck("ISO-8859-7", |
|
359 |
new String[] {"ISO_8859-7:1987", |
|
360 |
"iso-ir-126", |
|
361 |
"ISO_8859-7", |
|
362 |
"ELOT_928", |
|
363 |
"ECMA-118", |
|
364 |
"greek", |
|
365 |
"greek8", |
|
366 |
"8859_7", |
|
367 |
"iso_8859-7:1987", |
|
368 |
"iso8859-7", |
|
369 |
"ibm813", |
|
370 |
"ibm-813", |
|
371 |
"cp813", |
|
372 |
"813", |
|
373 |
"csISOLatinGreek"}); |
|
374 |
||
375 |
aliasCheck("ISO-8859-8", |
|
376 |
new String[] { |
|
377 |
"ISO_8859-8:1988", |
|
378 |
"iso-ir-138", |
|
379 |
"ISO_8859-8", |
|
380 |
"hebrew", |
|
381 |
"8859_8", |
|
382 |
"iso_8859-8:1988", |
|
383 |
"iso8859-8", |
|
384 |
"ibm916", |
|
385 |
"ibm-916", |
|
386 |
"cp916", |
|
387 |
"916", |
|
388 |
"csISOLatinHebrew"}); |
|
389 |
||
390 |
aliasCheck("ISO-8859-9", |
|
391 |
new String[] {"ISO_8859-9:1989", |
|
392 |
"iso-ir-148", |
|
393 |
"ISO_8859-9", |
|
394 |
"latin5", |
|
395 |
"l5", |
|
396 |
"8859_9", |
|
397 |
"iso8859-9", |
|
398 |
"ibm920", |
|
399 |
"ibm-920", |
|
400 |
"cp920", |
|
401 |
"920", |
|
402 |
"csISOLatin5"}); |
|
403 |
||
404 |
aliasCheck("ISO-8859-13", |
|
405 |
new String[] { |
|
406 |
"iso8859_13", // JDK historical |
|
407 |
"iso_8859-13", |
|
408 |
"8859_13", |
|
409 |
"ISO8859-13" |
|
410 |
}); |
|
411 |
||
412 |
aliasCheck("ISO-8859-15", |
|
413 |
new String[] { |
|
414 |
// IANA alias |
|
415 |
"ISO_8859-15", |
|
416 |
// JDK historical aliases |
|
417 |
"8859_15", |
|
418 |
"ISO-8859-15", |
|
419 |
"ISO_8859-15", |
|
420 |
"ISO8859-15", |
|
421 |
"ISO8859_15", |
|
422 |
"IBM923", |
|
423 |
"IBM-923", |
|
424 |
"cp923", |
|
425 |
"923", |
|
426 |
"LATIN0", |
|
427 |
"LATIN9", |
|
428 |
"L9", |
|
429 |
"csISOlatin0", |
|
430 |
"csISOlatin9", |
|
431 |
"ISO8859_15_FDIS" |
|
432 |
||
433 |
}); |
|
434 |
||
435 |
aliasCheck("JIS_X0212-1990", |
|
436 |
new String[] { |
|
437 |
"iso-ir-159", |
|
438 |
"csISO159JISX02121990"}); |
|
439 |
||
440 |
aliasCheck("JIS_X0201", |
|
441 |
new String[]{ |
|
442 |
"X0201", |
|
443 |
"csHalfWidthKatakana"}); |
|
444 |
||
445 |
aliasCheck("KOI8-R", |
|
446 |
new String[] { |
|
447 |
"KOI8_R", |
|
448 |
"csKOI8R"}); |
|
449 |
||
450 |
aliasCheck("GBK", |
|
451 |
new String[] { |
|
452 |
"windows-936"}); |
|
453 |
||
454 |
aliasCheck("Shift_JIS", |
|
455 |
new String[] { |
|
456 |
"MS_Kanji", |
|
457 |
"csShiftJIS"}); |
|
458 |
||
459 |
aliasCheck("EUC-JP", |
|
460 |
new String[] { |
|
461 |
"Extended_UNIX_Code_Packed_Format_for_Japanese", |
|
462 |
"csEUCPkdFmtJapanese"}); |
|
463 |
||
464 |
aliasCheck("Big5", new String[] {"csBig5"}); |
|
465 |
||
466 |
aliasCheck("windows-31j", new String[] {"csWindows31J"}); |
|
467 |
||
468 |
aliasCheck("x-iso-8859-11", |
|
469 |
new String[] { "iso-8859-11", "iso8859_11" }); |
|
470 |
||
471 |
aliasCheck("windows-1250", |
|
472 |
new String[] { |
|
473 |
"cp1250", |
|
474 |
"cp5346" |
|
475 |
}); |
|
476 |
||
477 |
aliasCheck("windows-1251", |
|
478 |
new String[] { |
|
479 |
"cp1251", |
|
480 |
"cp5347", |
|
481 |
"ansi-1251" |
|
482 |
}); |
|
483 |
||
484 |
aliasCheck("windows-1252", |
|
485 |
new String[] { |
|
486 |
"cp1252", |
|
487 |
"cp5348" |
|
488 |
}); |
|
489 |
||
490 |
aliasCheck("windows-1253", |
|
491 |
new String[] { |
|
492 |
"cp1253", |
|
493 |
"cp5349" |
|
494 |
}); |
|
495 |
||
496 |
aliasCheck("windows-1254", |
|
497 |
new String[] { |
|
498 |
"cp1254", |
|
499 |
"cp5350" |
|
500 |
}); |
|
501 |
||
502 |
aliasCheck("windows-1255", |
|
503 |
new String[] { |
|
504 |
"cp1255" |
|
505 |
}); |
|
506 |
||
507 |
aliasCheck("windows-1256", |
|
508 |
new String[] { |
|
509 |
"cp1256" |
|
510 |
}); |
|
511 |
||
512 |
aliasCheck("windows-1257", |
|
513 |
new String[] { |
|
514 |
"cp1257", |
|
515 |
"cp5353" |
|
516 |
}); |
|
517 |
||
518 |
aliasCheck("windows-1258", |
|
519 |
new String[] { |
|
520 |
"cp1258" |
|
521 |
}); |
|
522 |
||
523 |
aliasCheck("x-windows-874", |
|
524 |
new String[] { |
|
525 |
"ms874", "ms-874", "windows-874" }); |
|
526 |
||
527 |
aliasCheck("GB2312", |
|
528 |
new String[] { |
|
529 |
"x-EUC-CN", |
|
530 |
"gb2312-80", |
|
531 |
"gb2312-1980", |
|
532 |
"euc-cn", |
|
533 |
"euccn" }); |
|
534 |
||
535 |
aliasCheck("x-IBM942" , |
|
536 |
new String[] { |
|
537 |
"cp942", // JDK historical |
|
538 |
"ibm942", |
|
539 |
"ibm-942", |
|
540 |
"942" |
|
541 |
}); |
|
542 |
||
543 |
aliasCheck("x-IBM942C" , |
|
544 |
new String[] { |
|
545 |
"cp942C", // JDK historical |
|
546 |
"ibm942C", |
|
547 |
"ibm-942C", |
|
548 |
"942C" |
|
549 |
} ); |
|
550 |
||
551 |
aliasCheck("x-IBM943" , |
|
552 |
new String[] { |
|
553 |
"cp943", // JDK historical |
|
554 |
"ibm943", |
|
555 |
"ibm-943", |
|
556 |
"943" |
|
557 |
} ); |
|
558 |
||
559 |
aliasCheck("x-IBM943C" , |
|
560 |
new String[] { |
|
561 |
"cp943c", // JDK historical |
|
562 |
"ibm943C", |
|
563 |
"ibm-943C", |
|
564 |
"943C" |
|
565 |
} ); |
|
566 |
||
567 |
aliasCheck("x-IBM948" , |
|
568 |
new String[] { |
|
569 |
"cp948", // JDK historical |
|
570 |
"ibm948", |
|
571 |
"ibm-948", |
|
572 |
"948" |
|
573 |
} ); |
|
574 |
||
575 |
aliasCheck("x-IBM950" , |
|
576 |
new String[] { |
|
577 |
"cp950", // JDK historical |
|
578 |
"ibm950", |
|
579 |
"ibm-950", |
|
580 |
"950" |
|
581 |
} ); |
|
582 |
||
583 |
aliasCheck("x-IBM930" , |
|
584 |
new String[] { |
|
585 |
"cp930", // JDK historical |
|
586 |
"ibm930", |
|
587 |
"ibm-930", |
|
588 |
"930" |
|
589 |
} ); |
|
590 |
||
591 |
aliasCheck("x-IBM935" , |
|
592 |
new String[] { |
|
593 |
"cp935", // JDK historical |
|
594 |
"ibm935", |
|
595 |
"ibm-935", |
|
596 |
"935" |
|
597 |
} ); |
|
598 |
||
599 |
aliasCheck("x-IBM937" , |
|
600 |
new String[] { |
|
601 |
"cp937", // JDK historical |
|
602 |
"ibm937", |
|
603 |
"ibm-937", |
|
604 |
"937" |
|
605 |
} ); |
|
606 |
||
607 |
aliasCheck("IBM850" , |
|
608 |
new String[] { |
|
609 |
"cp850", // JDK historical |
|
610 |
"ibm-850", |
|
611 |
"ibm850", |
|
612 |
"850", |
|
613 |
"cspc850multilingual" |
|
614 |
} ); |
|
615 |
||
616 |
aliasCheck("IBM852" , |
|
617 |
new String[] { |
|
618 |
"cp852", // JDK historical |
|
619 |
"ibm852", |
|
620 |
"ibm-852", |
|
621 |
"852", |
|
622 |
"csPCp852" |
|
623 |
} ); |
|
624 |
||
625 |
aliasCheck("IBM855" , |
|
626 |
new String[] { |
|
627 |
"cp855", // JDK historical |
|
628 |
"ibm-855", |
|
629 |
"ibm855", |
|
630 |
"855", |
|
631 |
"cspcp855" |
|
632 |
} ); |
|
633 |
||
634 |
aliasCheck("x-IBM856" , |
|
635 |
new String[] { |
|
636 |
"cp856", // JDK historical |
|
637 |
"ibm-856", |
|
638 |
"ibm856", |
|
639 |
"856" |
|
640 |
} ); |
|
641 |
||
642 |
aliasCheck("IBM857" , |
|
643 |
new String[] { |
|
644 |
"cp857", // JDK historical |
|
645 |
"ibm857", |
|
646 |
"ibm-857", |
|
647 |
"857", |
|
648 |
"csIBM857" |
|
649 |
} ); |
|
650 |
||
651 |
aliasCheck("IBM860" , |
|
652 |
new String[] { |
|
653 |
"cp860", // JDK historical |
|
654 |
"ibm860", |
|
655 |
"ibm-860", |
|
656 |
"860", |
|
657 |
"csIBM860" |
|
658 |
} ); |
|
659 |
aliasCheck("IBM861" , |
|
660 |
new String[] { |
|
661 |
"cp861", // JDK historical |
|
662 |
"ibm861", |
|
663 |
"ibm-861", |
|
664 |
"861", |
|
665 |
"csIBM861" |
|
666 |
} ); |
|
667 |
||
668 |
aliasCheck("IBM862" , |
|
669 |
new String[] { |
|
670 |
"cp862", // JDK historical |
|
671 |
"ibm862", |
|
672 |
"ibm-862", |
|
673 |
"862", |
|
674 |
"csIBM862" |
|
675 |
} ); |
|
676 |
||
677 |
aliasCheck("IBM863" , |
|
678 |
new String[] { |
|
679 |
"cp863", // JDK historical |
|
680 |
"ibm863", |
|
681 |
"ibm-863", |
|
682 |
"863", |
|
683 |
"csIBM863" |
|
684 |
} ); |
|
685 |
||
686 |
aliasCheck("IBM864" , |
|
687 |
new String[] { |
|
688 |
"cp864", // JDK historical |
|
689 |
"ibm864", |
|
690 |
"ibm-864", |
|
691 |
"864", |
|
692 |
"csIBM864" |
|
693 |
} ); |
|
694 |
||
695 |
aliasCheck("IBM865" , |
|
696 |
new String[] { |
|
697 |
"cp865", // JDK historical |
|
698 |
"ibm865", |
|
699 |
"ibm-865", |
|
700 |
"865", |
|
701 |
"csIBM865" |
|
702 |
} ); |
|
703 |
||
704 |
aliasCheck("IBM866" , new String[] { |
|
705 |
"cp866", // JDK historical |
|
706 |
"ibm866", |
|
707 |
"ibm-866", |
|
708 |
"866", |
|
709 |
"csIBM866" |
|
710 |
} ); |
|
711 |
aliasCheck("IBM868" , |
|
712 |
new String[] { |
|
713 |
"cp868", // JDK historical |
|
714 |
"ibm868", |
|
715 |
"ibm-868", |
|
716 |
"868", |
|
717 |
"cp-ar", |
|
718 |
"csIBM868" |
|
719 |
} ); |
|
720 |
||
721 |
aliasCheck("IBM869" , |
|
722 |
new String[] { |
|
723 |
"cp869", // JDK historical |
|
724 |
"ibm869", |
|
725 |
"ibm-869", |
|
726 |
"869", |
|
727 |
"cp-gr", |
|
728 |
"csIBM869" |
|
729 |
} ); |
|
730 |
||
731 |
aliasCheck("IBM437" , |
|
732 |
new String[] { |
|
733 |
"cp437", // JDK historical |
|
734 |
"ibm437", |
|
735 |
"ibm-437", |
|
736 |
"437", |
|
737 |
"cspc8codepage437", |
|
738 |
"windows-437" |
|
739 |
} ); |
|
740 |
||
741 |
aliasCheck("x-IBM874" , |
|
742 |
new String[] { |
|
743 |
"cp874", // JDK historical |
|
744 |
"ibm874", |
|
745 |
"ibm-874", |
|
746 |
"874" |
|
747 |
} ); |
|
748 |
aliasCheck("x-IBM737" , |
|
749 |
new String[] { |
|
750 |
"cp737", // JDK historical |
|
751 |
"ibm737", |
|
752 |
"ibm-737", |
|
753 |
"737" |
|
754 |
} ); |
|
755 |
||
756 |
aliasCheck("IBM775" , |
|
757 |
new String[] { |
|
758 |
"cp775", // JDK historical |
|
759 |
"ibm775", |
|
760 |
"ibm-775", |
|
761 |
"775" |
|
762 |
} ); |
|
763 |
||
764 |
aliasCheck("x-IBM921" , |
|
765 |
new String[] { |
|
766 |
"cp921", // JDK historical |
|
767 |
"ibm921", |
|
768 |
"ibm-921", |
|
769 |
"921" |
|
770 |
} ); |
|
771 |
||
772 |
aliasCheck("x-IBM1006" , |
|
773 |
new String[] { |
|
774 |
"cp1006", // JDK historical |
|
775 |
"ibm1006", |
|
776 |
"ibm-1006", |
|
777 |
"1006" |
|
778 |
} ); |
|
779 |
||
780 |
aliasCheck("x-IBM1046" , |
|
781 |
new String[] { |
|
782 |
"cp1046", // JDK historical |
|
783 |
"ibm1046", |
|
784 |
"ibm-1046", |
|
785 |
"1046" |
|
786 |
} ); |
|
787 |
||
788 |
aliasCheck("IBM1047" , |
|
789 |
new String[] { |
|
790 |
"cp1047", // JDK historical |
|
791 |
"ibm-1047", |
|
792 |
"1047" |
|
793 |
} ); |
|
794 |
||
795 |
aliasCheck("x-IBM1098" , |
|
796 |
new String[] { |
|
797 |
"cp1098", // JDK historical |
|
798 |
"ibm1098", |
|
799 |
"ibm-1098", |
|
800 |
"1098", |
|
801 |
} ); |
|
802 |
||
803 |
aliasCheck("IBM037" , |
|
804 |
new String[] { |
|
805 |
"cp037", // JDK historical |
|
806 |
"ibm037", |
|
807 |
"csIBM037", |
|
808 |
"cs-ebcdic-cp-us", |
|
809 |
"cs-ebcdic-cp-ca", |
|
810 |
"cs-ebcdic-cp-wt", |
|
811 |
"cs-ebcdic-cp-nl", |
|
812 |
"ibm-037", |
|
813 |
"ibm-37", |
|
814 |
"cpibm37", |
|
815 |
"037" |
|
816 |
} ); |
|
817 |
||
818 |
aliasCheck("x-IBM1025" , |
|
819 |
new String[] { |
|
820 |
"cp1025", // JDK historical |
|
821 |
"ibm1025", |
|
822 |
"ibm-1025", |
|
823 |
"1025" |
|
824 |
} ); |
|
825 |
||
826 |
aliasCheck("IBM1026" , |
|
827 |
new String[] { |
|
828 |
"cp1026", // JDK historical |
|
829 |
"ibm1026", |
|
830 |
"ibm-1026", |
|
831 |
"1026" |
|
832 |
} ); |
|
833 |
||
834 |
aliasCheck("x-IBM1112" , |
|
835 |
new String[] { |
|
836 |
"cp1112", // JDK historical |
|
837 |
"ibm1112", |
|
838 |
"ibm-1112", |
|
839 |
"1112" |
|
840 |
} ); |
|
841 |
||
842 |
aliasCheck("x-IBM1122" , |
|
843 |
new String[] { |
|
844 |
"cp1122", // JDK historical |
|
845 |
"ibm1122", |
|
846 |
"ibm-1122", |
|
847 |
"1122" |
|
848 |
} ); |
|
849 |
||
850 |
aliasCheck("x-IBM1123" , |
|
851 |
new String[] { |
|
852 |
"cp1123", // JDK historical |
|
853 |
"ibm1123", |
|
854 |
"ibm-1123", |
|
855 |
"1123" |
|
856 |
} ); |
|
857 |
||
858 |
aliasCheck("x-IBM1124" , |
|
859 |
new String[] { |
|
860 |
"cp1124", // JDK historical |
|
861 |
"ibm1124", |
|
862 |
"ibm-1124", |
|
863 |
"1124" |
|
864 |
} ); |
|
865 |
||
866 |
aliasCheck("IBM273" , |
|
867 |
new String[] { |
|
868 |
"cp273", // JDK historical |
|
869 |
"ibm273", |
|
870 |
"ibm-273", |
|
871 |
"273" |
|
872 |
} ); |
|
873 |
||
874 |
aliasCheck("IBM277" , |
|
875 |
new String[] { |
|
876 |
"cp277", // JDK historical |
|
877 |
"ibm277", |
|
878 |
"ibm-277", |
|
879 |
"277" |
|
880 |
} ); |
|
881 |
||
882 |
aliasCheck("IBM278" , |
|
883 |
new String[] { |
|
884 |
"cp278", // JDK historical |
|
885 |
"ibm278", |
|
886 |
"ibm-278", |
|
887 |
"278", |
|
888 |
"ebcdic-sv", |
|
889 |
"ebcdic-cp-se", |
|
890 |
"csIBM278" |
|
891 |
} ); |
|
892 |
||
893 |
aliasCheck("IBM280" , |
|
894 |
new String[] { |
|
895 |
"cp280", // JDK historical |
|
896 |
"ibm280", |
|
897 |
"ibm-280", |
|
898 |
"280" |
|
899 |
} ); |
|
900 |
||
901 |
aliasCheck("IBM284" , |
|
902 |
new String[] { |
|
903 |
"cp284", // JDK historical |
|
904 |
"ibm284", |
|
905 |
"ibm-284", |
|
906 |
"284", |
|
907 |
"csIBM284", |
|
908 |
"cpibm284" |
|
909 |
} ); |
|
910 |
||
911 |
aliasCheck("IBM285" , |
|
912 |
new String[] { |
|
913 |
"cp285", // JDK historical |
|
914 |
"ibm285", |
|
915 |
"ibm-285", |
|
916 |
"285", |
|
917 |
"ebcdic-cp-gb", |
|
918 |
"ebcdic-gb", |
|
919 |
"csIBM285", |
|
920 |
"cpibm285" |
|
921 |
} ); |
|
922 |
||
923 |
aliasCheck("IBM297" , |
|
924 |
new String[] { |
|
925 |
"cp297", // JDK historical |
|
926 |
"ibm297", |
|
927 |
"ibm-297", |
|
928 |
"297", |
|
929 |
"ebcdic-cp-fr", |
|
930 |
"cpibm297", |
|
931 |
"csIBM297", |
|
932 |
} ); |
|
933 |
||
934 |
aliasCheck("IBM420" , |
|
935 |
new String[] { |
|
936 |
"cp420", // JDK historical |
|
937 |
"ibm420", |
|
938 |
"ibm-420", |
|
939 |
"ebcdic-cp-ar1", |
|
940 |
"420", |
|
941 |
"csIBM420" |
|
942 |
} ); |
|
943 |
||
944 |
aliasCheck("IBM424" , |
|
945 |
new String[] { |
|
946 |
"cp424", // JDK historical |
|
947 |
"ibm424", |
|
948 |
"ibm-424", |
|
949 |
"424", |
|
950 |
"ebcdic-cp-he", |
|
951 |
"csIBM424" |
|
952 |
} ); |
|
953 |
||
954 |
aliasCheck("IBM500" , |
|
955 |
new String[] { |
|
956 |
"cp500", // JDK historical |
|
957 |
"ibm500", |
|
958 |
"ibm-500", |
|
959 |
"500", |
|
960 |
"ebcdic-cp-ch", |
|
961 |
"ebcdic-cp-bh", |
|
962 |
"csIBM500" |
|
963 |
} ); |
|
964 |
||
965 |
aliasCheck("IBM-Thai" , |
|
966 |
new String[] { |
|
967 |
"cp838", // JDK historical |
|
968 |
"ibm838", |
|
969 |
"ibm-838", |
|
970 |
"ibm838", |
|
971 |
"838" |
|
972 |
} ); |
|
973 |
||
974 |
aliasCheck("IBM870" , |
|
975 |
new String[] { |
|
976 |
"cp870", // JDK historical |
|
977 |
"ibm870", |
|
978 |
"ibm-870", |
|
979 |
"870", |
|
980 |
"ebcdic-cp-roece", |
|
981 |
"ebcdic-cp-yu", |
|
982 |
"csIBM870" |
|
983 |
} ); |
|
984 |
||
985 |
aliasCheck("IBM871" , |
|
986 |
new String[] { |
|
987 |
"cp871", // JDK historical |
|
988 |
"ibm871", |
|
989 |
"ibm-871", |
|
990 |
"871", |
|
991 |
"ebcdic-cp-is", |
|
992 |
"csIBM871" |
|
993 |
} ); |
|
994 |
||
995 |
aliasCheck("x-IBM875" , |
|
996 |
new String[] { |
|
997 |
"cp875", // JDK historical |
|
998 |
"ibm875", |
|
999 |
"ibm-875", |
|
1000 |
"875" |
|
1001 |
} ); |
|
1002 |
||
1003 |
aliasCheck("IBM918" , |
|
1004 |
new String[] { |
|
1005 |
"cp918", // JDK historical |
|
1006 |
"ibm-918", |
|
1007 |
"918", |
|
1008 |
"ebcdic-cp-ar2" |
|
1009 |
} ); |
|
1010 |
||
1011 |
aliasCheck("x-IBM922" , |
|
1012 |
new String[] { |
|
1013 |
"cp922", // JDK historical |
|
1014 |
"ibm922", |
|
1015 |
"ibm-922", |
|
1016 |
"922" |
|
1017 |
} ); |
|
1018 |
||
1019 |
aliasCheck("x-IBM1097" , |
|
1020 |
new String[] { |
|
1021 |
"cp1097", // JDK historical |
|
1022 |
"ibm1097", |
|
1023 |
"ibm-1097", |
|
1024 |
"1097" |
|
1025 |
} ); |
|
1026 |
||
1027 |
aliasCheck("x-IBM949" , |
|
1028 |
new String[] { |
|
1029 |
"cp949", // JDK historical |
|
1030 |
"ibm949", |
|
1031 |
"ibm-949", |
|
1032 |
"949" |
|
1033 |
} ); |
|
1034 |
||
1035 |
aliasCheck("x-IBM949C" , |
|
1036 |
new String[] { |
|
1037 |
"cp949C", // JDK historical |
|
1038 |
"ibm949C", |
|
1039 |
"ibm-949C", |
|
1040 |
"949C" |
|
1041 |
} ); |
|
1042 |
||
1043 |
aliasCheck("x-IBM939" , |
|
1044 |
new String[] { |
|
1045 |
"cp939", // JDK historical |
|
1046 |
"ibm939", |
|
1047 |
"ibm-939", |
|
1048 |
"939" |
|
1049 |
} ); |
|
1050 |
||
1051 |
aliasCheck("x-IBM933" , |
|
1052 |
new String[] { |
|
1053 |
"cp933", // JDK historical |
|
1054 |
"ibm933", |
|
1055 |
"ibm-933", |
|
1056 |
"933" |
|
1057 |
} ); |
|
1058 |
||
1059 |
aliasCheck("x-IBM1381" , |
|
1060 |
new String[] { |
|
1061 |
"cp1381", // JDK historical |
|
1062 |
"ibm1381", |
|
1063 |
"ibm-1381", |
|
1064 |
"1381" |
|
1065 |
} ); |
|
1066 |
||
1067 |
aliasCheck("x-IBM1383" , |
|
1068 |
new String[] { |
|
1069 |
"cp1383", // JDK historical |
|
1070 |
"ibm1383", |
|
1071 |
"ibm-1383", |
|
1072 |
"1383" |
|
1073 |
} ); |
|
1074 |
||
1075 |
aliasCheck("x-IBM970" , |
|
1076 |
new String[] { |
|
1077 |
"cp970", // JDK historical |
|
1078 |
"ibm970", |
|
1079 |
"ibm-970", |
|
1080 |
"ibm-eucKR", |
|
1081 |
"970" |
|
1082 |
} ); |
|
1083 |
||
1084 |
aliasCheck("x-IBM964" , |
|
1085 |
new String[] { |
|
1086 |
"cp964", // JDK historical |
|
1087 |
"ibm964", |
|
1088 |
"ibm-964", |
|
1089 |
"964" |
|
1090 |
} ); |
|
1091 |
||
1092 |
aliasCheck("x-IBM33722" , |
|
1093 |
new String[] { |
|
1094 |
"cp33722", // JDK historical |
|
1095 |
"ibm33722", |
|
1096 |
"ibm-33722", |
|
1097 |
"ibm-5050", // from IBM alias list |
|
1098 |
"ibm-33722_vascii_vpua", // from IBM alias list |
|
1099 |
"33722" |
|
1100 |
} ); |
|
1101 |
||
1102 |
aliasCheck("IBM01140" , |
|
1103 |
new String[] { |
|
1104 |
"cp1140", // JDK historical |
|
1105 |
"ccsid01140", |
|
1106 |
"cp01140", |
|
1107 |
// "ebcdic-us-037+euro" |
|
1108 |
} ); |
|
1109 |
||
1110 |
aliasCheck("IBM01141" , |
|
1111 |
new String[] { |
|
1112 |
"cp1141", // JDK historical |
|
1113 |
"ccsid01141", |
|
1114 |
"cp01141", |
|
1115 |
// "ebcdic-de-273+euro" |
|
1116 |
} ); |
|
1117 |
||
1118 |
aliasCheck("IBM01142" , |
|
1119 |
new String[] { |
|
1120 |
"cp1142", // JDK historical |
|
1121 |
"ccsid01142", |
|
1122 |
"cp01142", |
|
1123 |
// "ebcdic-no-277+euro", |
|
1124 |
// "ebcdic-dk-277+euro" |
|
1125 |
} ); |
|
1126 |
||
1127 |
aliasCheck("IBM01143" , |
|
1128 |
new String[] { |
|
1129 |
"cp1143", // JDK historical |
|
1130 |
"ccsid01143", |
|
1131 |
"cp01143", |
|
1132 |
// "ebcdic-fi-278+euro", |
|
1133 |
// "ebcdic-se-278+euro" |
|
1134 |
} ); |
|
1135 |
||
1136 |
aliasCheck("IBM01144" , |
|
1137 |
new String[] { |
|
1138 |
"cp1144", // JDK historical |
|
1139 |
"ccsid01144", |
|
1140 |
"cp01144", |
|
1141 |
// "ebcdic-it-280+euro" |
|
1142 |
} ); |
|
1143 |
||
1144 |
aliasCheck("IBM01145" , |
|
1145 |
new String[] { |
|
1146 |
"cp1145", // JDK historical |
|
1147 |
"ccsid01145", |
|
1148 |
"cp01145", |
|
1149 |
// "ebcdic-es-284+euro" |
|
1150 |
} ); |
|
1151 |
||
1152 |
aliasCheck("IBM01146" , |
|
1153 |
new String[] { |
|
1154 |
"cp1146", // JDK historical |
|
1155 |
"ccsid01146", |
|
1156 |
"cp01146", |
|
1157 |
// "ebcdic-gb-285+euro" |
|
1158 |
} ); |
|
1159 |
||
1160 |
aliasCheck("IBM01147" , |
|
1161 |
new String[] { |
|
1162 |
"cp1147", // JDK historical |
|
1163 |
"ccsid01147", |
|
1164 |
"cp01147", |
|
1165 |
// "ebcdic-fr-277+euro" |
|
1166 |
} ); |
|
1167 |
||
1168 |
aliasCheck("IBM01148" , |
|
1169 |
new String[] { |
|
1170 |
"cp1148", // JDK historical |
|
1171 |
"ccsid01148", |
|
1172 |
"cp01148", |
|
1173 |
// "ebcdic-international-500+euro" |
|
1174 |
} ); |
|
1175 |
||
1176 |
aliasCheck("IBM01149" , |
|
1177 |
new String[] { |
|
1178 |
"cp1149", // JDK historical |
|
1179 |
"ccsid01149", |
|
1180 |
"cp01149", |
|
1181 |
// "ebcdic-s-871+euro" |
|
1182 |
} ); |
|
1183 |
||
1184 |
aliasCheck("IBM00858" , |
|
1185 |
new String[] { |
|
1186 |
"cp858", // JDK historical |
|
1187 |
"ccsid00858", |
|
1188 |
"cp00858", |
|
1189 |
// "PC-Multilingual-850+euro" |
|
1190 |
} ); |
|
1191 |
||
1192 |
aliasCheck("x-MacRoman", |
|
1193 |
new String[] { |
|
1194 |
"MacRoman" // JDK historical |
|
1195 |
}); |
|
1196 |
||
1197 |
aliasCheck("x-MacCentralEurope", |
|
1198 |
new String[] { |
|
1199 |
"MacCentralEurope" // JDK historical |
|
1200 |
}); |
|
1201 |
||
1202 |
aliasCheck("x-MacCroatian", |
|
1203 |
new String[] { |
|
1204 |
"MacCroatian" // JDK historical |
|
1205 |
}); |
|
1206 |
||
1207 |
||
1208 |
aliasCheck("x-MacCroatian", |
|
1209 |
new String[] { |
|
1210 |
"MacCroatian" // JDK historical |
|
1211 |
}); |
|
1212 |
||
1213 |
||
1214 |
aliasCheck("x-MacGreek", |
|
1215 |
new String[] { |
|
1216 |
"MacGreek" // JDK historical |
|
1217 |
}); |
|
1218 |
||
1219 |
aliasCheck("x-MacCyrillic", |
|
1220 |
new String[] { |
|
1221 |
"MacCyrillic" // JDK historical |
|
1222 |
}); |
|
1223 |
||
1224 |
aliasCheck("x-MacUkraine", |
|
1225 |
new String[] { |
|
1226 |
"MacUkraine" // JDK historical |
|
1227 |
}); |
|
1228 |
||
1229 |
aliasCheck("x-MacTurkish", |
|
1230 |
new String[] { |
|
1231 |
"MacTurkish" // JDK historical |
|
1232 |
}); |
|
1233 |
||
1234 |
aliasCheck("x-MacArabic", |
|
1235 |
new String[] { |
|
1236 |
"MacArabic" // JDK historical |
|
1237 |
}); |
|
1238 |
||
1239 |
aliasCheck("x-MacHebrew", |
|
1240 |
new String[] { |
|
1241 |
"MacHebrew" // JDK historical |
|
1242 |
}); |
|
1243 |
||
1244 |
aliasCheck("x-MacIceland", |
|
1245 |
new String[] { |
|
1246 |
"MacIceland" // JDK historical |
|
1247 |
}); |
|
1248 |
||
1249 |
aliasCheck("x-MacRomania", |
|
1250 |
new String[] { |
|
1251 |
"MacRomania" // JDK historical |
|
1252 |
}); |
|
1253 |
||
1254 |
aliasCheck("x-MacThai", |
|
1255 |
new String[] { |
|
1256 |
"MacThai" // JDK historical |
|
1257 |
}); |
|
1258 |
||
1259 |
aliasCheck("x-MacSymbol", |
|
1260 |
new String[] { |
|
1261 |
"MacSymbol" // JDK historical |
|
1262 |
}); |
|
1263 |
||
1264 |
aliasCheck("x-MacDingbat", |
|
1265 |
new String[] { |
|
1266 |
"MacDingbat" // JDK historical |
|
1267 |
}); |
|
1268 |
} |
|
1269 |
} |