changeset 47115 | 5e68e293e7a1 |
parent 44115 | bb4e971bf5d4 |
47114:5a9e5cc0be89 | 47115:5e68e293e7a1 |
---|---|
1 /* |
1 /* |
2 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* @test |
24 /* @test |
25 * @bug 4473201 4696726 4652234 4482298 4784385 4966197 4267354 5015668 |
25 * @bug 4473201 4696726 4652234 4482298 4784385 4966197 4267354 5015668 |
26 6911753 8071447 |
26 6911753 8071447 8186751 |
27 * @summary Check that registered charsets are actually registered |
27 * @summary Check that registered charsets are actually registered |
28 * @modules jdk.charsets |
28 * @modules jdk.charsets |
29 */ |
29 */ |
30 |
30 |
31 import java.io.*; |
31 import java.io.*; |
40 "GBK", "GB18030", "ISO-2022-KR", "ISO-2022-JP", |
40 "GBK", "GB18030", "ISO-2022-KR", "ISO-2022-JP", |
41 "GB2312", // IANA preferred name for "EUC-CN" |
41 "GB2312", // IANA preferred name for "EUC-CN" |
42 "ISO-8859-1", "ISO-8859-2", "ISO-8859-3", |
42 "ISO-8859-1", "ISO-8859-2", "ISO-8859-3", |
43 "ISO-8859-4", "ISO-8859-5", "ISO-8859-6", |
43 "ISO-8859-4", "ISO-8859-5", "ISO-8859-6", |
44 "ISO-8859-7", "ISO-8859-8", "ISO-8859-9", |
44 "ISO-8859-7", "ISO-8859-8", "ISO-8859-9", |
45 "ISO-8859-13", "ISO-8859-15", "windows-1251", |
45 "ISO-8859-13", "ISO-8859-15", "ISO-8859-16", |
46 "windows-1251", |
|
46 "windows-1252", "windows-1253", "windows-1254", |
47 "windows-1252", "windows-1253", "windows-1254", |
47 "windows-1255", "windows-1256", "windows-31j", |
48 "windows-1255", "windows-1256", "windows-31j", |
48 "Shift_JIS", "JIS_X0201", "JIS_X0212-1990", |
49 "Shift_JIS", "JIS_X0201", "JIS_X0212-1990", |
49 "TIS-620", "Big5-HKSCS", |
50 "TIS-620", "Big5-HKSCS", |
50 "ISO-2022-CN", |
51 "ISO-2022-CN", |
414 |
415 |
415 aliasCheck("ISO-8859-15", |
416 aliasCheck("ISO-8859-15", |
416 new String[] { |
417 new String[] { |
417 // IANA alias |
418 // IANA alias |
418 "ISO_8859-15", |
419 "ISO_8859-15", |
420 "Latin-9", |
|
421 "csISO885915", |
|
419 // JDK historical aliases |
422 // JDK historical aliases |
420 "8859_15", |
423 "8859_15", |
421 "ISO-8859-15", |
424 "ISO-8859-15", |
422 "ISO_8859-15", |
425 "ISO_8859-15", |
423 "ISO8859-15", |
426 "ISO8859-15", |
430 "LATIN9", |
433 "LATIN9", |
431 "L9", |
434 "L9", |
432 "csISOlatin0", |
435 "csISOlatin0", |
433 "csISOlatin9", |
436 "csISOlatin9", |
434 "ISO8859_15_FDIS" |
437 "ISO8859_15_FDIS" |
435 |
438 }); |
436 }); |
439 |
440 aliasCheck("ISO-8859-16", |
|
441 new String[] { |
|
442 "iso-ir-226", |
|
443 "ISO_8859-16:2001", |
|
444 "ISO_8859-16", |
|
445 "latin10", |
|
446 "l10", |
|
447 "csISO885916" |
|
448 }); |
|
437 |
449 |
438 aliasCheck("JIS_X0212-1990", |
450 aliasCheck("JIS_X0212-1990", |
439 new String[] { |
451 new String[] { |
440 "iso-ir-159", |
452 "iso-ir-159", |
441 "csISO159JISX02121990"}); |
453 "csISO159JISX02121990"}); |