jdk/src/share/classes/sun/nio/cs/ext/ExtendedCharsets.java
author ohair
Wed, 06 Apr 2011 22:06:11 -0700
changeset 9035 1255eb81cc2f
parent 8795 d235a77ef918
child 12047 320a714614e9
permissions -rw-r--r--
7033660: Update copyright year to 2011 on any files changed in 2011 Reviewed-by: dholmes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
9035
1255eb81cc2f 7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents: 8795
diff changeset
     2
 * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5167
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5167
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5167
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5167
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5167
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package sun.nio.cs.ext;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.lang.ref.SoftReference;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.nio.charset.Charset;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.nio.charset.spi.CharsetProvider;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import sun.nio.cs.AbstractCharsetProvider;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import java.security.AccessController;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import sun.security.action.GetPropertyAction;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * Provider for extended charsets.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
public class ExtendedCharsets
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
    extends AbstractCharsetProvider
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
    static volatile ExtendedCharsets instance = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
    public ExtendedCharsets() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
        super("sun.nio.cs.ext");  // identify provider pkg name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
        // Traditional Chinese
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
        charset("Big5", "Big5",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
                    // IANA aliases
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
                    "csBig5"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
5167
dbd299f8fdae 6902790: Converting/displaying HKSCs characters issue on Vista and Windows7
sherman
parents: 1628
diff changeset
    58
        charset("x-MS950-HKSCS-XP", "MS950_HKSCS_XP",
dbd299f8fdae 6902790: Converting/displaying HKSCs characters issue on Vista and Windows7
sherman
parents: 1628
diff changeset
    59
                new String[] {
dbd299f8fdae 6902790: Converting/displaying HKSCs characters issue on Vista and Windows7
sherman
parents: 1628
diff changeset
    60
                    "MS950_HKSCS_XP"  // JDK historical;
dbd299f8fdae 6902790: Converting/displaying HKSCs characters issue on Vista and Windows7
sherman
parents: 1628
diff changeset
    61
                });
dbd299f8fdae 6902790: Converting/displaying HKSCs characters issue on Vista and Windows7
sherman
parents: 1628
diff changeset
    62
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
        charset("x-MS950-HKSCS", "MS950_HKSCS",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
                    // IANA aliases
5167
dbd299f8fdae 6902790: Converting/displaying HKSCs characters issue on Vista and Windows7
sherman
parents: 1628
diff changeset
    66
                    "MS950_HKSCS"     // JDK historical;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
        charset("x-windows-950", "MS950",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
                    "ms950",    // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
                    "windows-950"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
        charset("x-windows-874", "MS874",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
                    "ms874",  // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
                    "ms-874",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
                    "windows-874" });
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
        charset("x-EUC-TW", "EUC_TW",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
                    "euc_tw", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
                    "euctw",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
                    "cns11643",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
                    "EUC-TW"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
        charset("Big5-HKSCS", "Big5_HKSCS",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
                    "Big5_HKSCS", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
                    "big5hk",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
                    "big5-hkscs",
5167
dbd299f8fdae 6902790: Converting/displaying HKSCs characters issue on Vista and Windows7
sherman
parents: 1628
diff changeset
    94
                    "big5hkscs"   // Linux alias
dbd299f8fdae 6902790: Converting/displaying HKSCs characters issue on Vista and Windows7
sherman
parents: 1628
diff changeset
    95
                });
dbd299f8fdae 6902790: Converting/displaying HKSCs characters issue on Vista and Windows7
sherman
parents: 1628
diff changeset
    96
dbd299f8fdae 6902790: Converting/displaying HKSCs characters issue on Vista and Windows7
sherman
parents: 1628
diff changeset
    97
        charset("x-Big5-HKSCS-2001", "Big5_HKSCS_2001",
dbd299f8fdae 6902790: Converting/displaying HKSCs characters issue on Vista and Windows7
sherman
parents: 1628
diff changeset
    98
                new String[] {
dbd299f8fdae 6902790: Converting/displaying HKSCs characters issue on Vista and Windows7
sherman
parents: 1628
diff changeset
    99
                    "Big5_HKSCS_2001",
dbd299f8fdae 6902790: Converting/displaying HKSCs characters issue on Vista and Windows7
sherman
parents: 1628
diff changeset
   100
                    "big5hk-2001",
dbd299f8fdae 6902790: Converting/displaying HKSCs characters issue on Vista and Windows7
sherman
parents: 1628
diff changeset
   101
                    "big5-hkscs-2001",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
                    "big5-hkscs:unicode3.0",
5167
dbd299f8fdae 6902790: Converting/displaying HKSCs characters issue on Vista and Windows7
sherman
parents: 1628
diff changeset
   103
                    "big5hkscs-2001",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
        charset("x-Big5-Solaris", "Big5_Solaris",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
                    "Big5_Solaris", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
        // Simplified Chinese
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
        charset("GBK", "GBK",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
                    "windows-936",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
                    "CP936"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
        charset("GB18030", "GB18030",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
                    "gb18030-2000"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
        charset("GB2312", "EUC_CN",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
                    // IANA aliases
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
                    "gb2312",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
                    "gb2312-80",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
                    "gb2312-1980",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
                    "euc-cn",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
                    "euccn",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
                    "x-EUC-CN", // 1.4 compatability
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
                    "EUC_CN" //JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
        charset("x-mswin-936", "MS936",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
                    "ms936", // historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
                    // IANA aliases
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
                    "ms_936"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
        // The definition of this charset may be overridden by the init method,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
        // below, if the sun.nio.cs.map property is defined.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
        //
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
        charset("Shift_JIS", "SJIS",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
                    // IANA aliases
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
                    "sjis", // historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
                    "shift_jis",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
                    "shift-jis",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
                    "ms_kanji",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
                    "x-sjis",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
                    "csShiftJIS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
        // The definition of this charset may be overridden by the init method,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
        // below, if the sun.nio.cs.map property is defined.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
        //
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
        charset("windows-31j", "MS932",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
                    "MS932", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
                    "windows-932",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
                    "csWindows31J"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
        charset("JIS_X0201", "JIS_X_0201",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
                    "JIS0201", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
                    // IANA aliases
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
                    "JIS_X0201",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
                    "X0201",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
                    "csHalfWidthKatakana"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
        charset("x-JIS0208", "JIS_X_0208",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
                    "JIS0208", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
                    // IANA aliases
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
                    "JIS_C6226-1983",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
                    "iso-ir-87",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
                    "x0208",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
                    "JIS_X0208-1983",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
                    "csISO87JISX0208"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
        charset("JIS_X0212-1990", "JIS_X_0212",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
                    "JIS0212", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
                    // IANA aliases
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
                    "jis_x0212-1990",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
                    "x0212",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
                    "iso-ir-159",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
                    "csISO159JISX02121990"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
400
9f3afee24320 6529796: Support JIS X 0213:2004 in existing JDK versions, especially for Windows Vista
sherman
parents: 2
diff changeset
   196
        charset("x-SJIS_0213", "SJIS_0213",
9f3afee24320 6529796: Support JIS X 0213:2004 in existing JDK versions, especially for Windows Vista
sherman
parents: 2
diff changeset
   197
                new String[] {
9f3afee24320 6529796: Support JIS X 0213:2004 in existing JDK versions, especially for Windows Vista
sherman
parents: 2
diff changeset
   198
                    "sjis-0213",
9f3afee24320 6529796: Support JIS X 0213:2004 in existing JDK versions, especially for Windows Vista
sherman
parents: 2
diff changeset
   199
                    "sjis_0213",
9f3afee24320 6529796: Support JIS X 0213:2004 in existing JDK versions, especially for Windows Vista
sherman
parents: 2
diff changeset
   200
                    "sjis:2004",
9f3afee24320 6529796: Support JIS X 0213:2004 in existing JDK versions, especially for Windows Vista
sherman
parents: 2
diff changeset
   201
                    "sjis_0213:2004",
9f3afee24320 6529796: Support JIS X 0213:2004 in existing JDK versions, especially for Windows Vista
sherman
parents: 2
diff changeset
   202
                    "shift_jis_0213:2004",
9f3afee24320 6529796: Support JIS X 0213:2004 in existing JDK versions, especially for Windows Vista
sherman
parents: 2
diff changeset
   203
                    "shift_jis:2004"
9f3afee24320 6529796: Support JIS X 0213:2004 in existing JDK versions, especially for Windows Vista
sherman
parents: 2
diff changeset
   204
                });
9f3afee24320 6529796: Support JIS X 0213:2004 in existing JDK versions, especially for Windows Vista
sherman
parents: 2
diff changeset
   205
9f3afee24320 6529796: Support JIS X 0213:2004 in existing JDK versions, especially for Windows Vista
sherman
parents: 2
diff changeset
   206
        charset("x-MS932_0213", "MS932_0213",
9f3afee24320 6529796: Support JIS X 0213:2004 in existing JDK versions, especially for Windows Vista
sherman
parents: 2
diff changeset
   207
                new String[] {
9f3afee24320 6529796: Support JIS X 0213:2004 in existing JDK versions, especially for Windows Vista
sherman
parents: 2
diff changeset
   208
                    "MS932-0213",
9f3afee24320 6529796: Support JIS X 0213:2004 in existing JDK versions, especially for Windows Vista
sherman
parents: 2
diff changeset
   209
                    "MS932_0213",
9f3afee24320 6529796: Support JIS X 0213:2004 in existing JDK versions, especially for Windows Vista
sherman
parents: 2
diff changeset
   210
                    "MS932:2004",
9f3afee24320 6529796: Support JIS X 0213:2004 in existing JDK versions, especially for Windows Vista
sherman
parents: 2
diff changeset
   211
                    "windows-932-0213",
9f3afee24320 6529796: Support JIS X 0213:2004 in existing JDK versions, especially for Windows Vista
sherman
parents: 2
diff changeset
   212
                    "windows-932:2004"
9f3afee24320 6529796: Support JIS X 0213:2004 in existing JDK versions, especially for Windows Vista
sherman
parents: 2
diff changeset
   213
                });
9f3afee24320 6529796: Support JIS X 0213:2004 in existing JDK versions, especially for Windows Vista
sherman
parents: 2
diff changeset
   214
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
        charset("EUC-JP", "EUC_JP",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
                    "euc_jp", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
                    // IANA aliases
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
                    "eucjis",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
                    "eucjp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
                    "Extended_UNIX_Code_Packed_Format_for_Japanese",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
                    "csEUCPkdFmtjapanese",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
                    "x-euc-jp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
                    "x-eucjp"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
        charset("x-euc-jp-linux", "EUC_JP_LINUX",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
                    "euc_jp_linux", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
                    "euc-jp-linux"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
        charset("x-eucjp-open", "EUC_JP_Open",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
                    "EUC_JP_Solaris",   // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
                    "eucJP-open"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
        charset("x-PCK", "PCK",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
                    // IANA aliases
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
                    "pck" // historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
        charset("ISO-2022-JP", "ISO2022_JP",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
            new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
            // IANA aliases
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
            "iso2022jp", // historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
            "jis",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
            "csISO2022JP",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
            "jis_encoding",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
            "csjisencoding"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
        });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
        charset("ISO-2022-JP-2", "ISO2022_JP_2",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
            new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
            // IANA aliases
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
            "csISO2022JP2",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
            "iso2022jp2"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
        });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
        charset("x-windows-50221", "MS50221",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
            new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
            "ms50221", // historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
            "cp50221",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
        });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
        charset("x-windows-50220", "MS50220",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
            new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
            "ms50220", // historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
            "cp50220",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
        });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
        charset("x-windows-iso2022jp", "MSISO2022JP",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
            new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
            "windows-iso2022jp", // historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
        });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
        charset("x-JISAutoDetect", "JISAutoDetect",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
                    "JISAutoDetect" // historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
        // Korean
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
        charset("EUC-KR", "EUC_KR",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
                    "euc_kr", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
                    // IANA aliases
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
                    "ksc5601",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
                    "euckr",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
                    "ks_c_5601-1987",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
                    "ksc5601-1987",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
                    "ksc5601_1987",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
                    "ksc_5601",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
                    "csEUCKR",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
                    "5601"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
        charset("x-windows-949", "MS949",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
                    "ms949",    // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
                    "windows949",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
                    "windows-949",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
                    // IANA aliases
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
                    "ms_949"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
        charset("x-Johab", "Johab",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
                        "ksc5601-1992",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
                        "ksc5601_1992",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
                        "ms1361",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
                        "johab" // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
        charset("ISO-2022-KR", "ISO2022_KR",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
                        "ISO2022KR", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
                        "csISO2022KR"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
        charset("ISO-2022-CN", "ISO2022_CN",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
                        "ISO2022CN", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
                        "csISO2022CN"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
        charset("x-ISO-2022-CN-CNS", "ISO2022_CN_CNS",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
                        "ISO2022CN_CNS", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
                        "ISO-2022-CN-CNS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
        charset("x-ISO-2022-CN-GB", "ISO2022_CN_GB",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
                        "ISO2022CN_GB", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
                        "ISO-2022-CN-GB"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
        charset("x-ISCII91", "ISCII91",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
                        "iscii",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
                        "ST_SEV_358-88",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
                        "iso-ir-153",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
                        "csISO153GOST1976874",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
                        "ISCII91" // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
        charset("ISO-8859-3", "ISO_8859_3",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
                    "iso8859_3", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
                    "8859_3",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
                    "ISO_8859-3:1988",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
                    "iso-ir-109",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
                    "ISO_8859-3",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
                    "ISO8859-3",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
                    "latin3",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
                    "l3",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
                    "ibm913",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
                    "ibm-913",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
                    "cp913",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
                    "913",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
                    "csISOLatin3"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
        charset("ISO-8859-6", "ISO_8859_6",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
                    "iso8859_6", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
                    "8859_6",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
                    "iso-ir-127",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
                    "ISO_8859-6",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
                    "ISO_8859-6:1987",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
                    "ISO8859-6",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
                    "ECMA-114",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
                    "ASMO-708",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
                    "arabic",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
                    "ibm1089",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
                    "ibm-1089",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
                    "cp1089",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
                    "1089",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
                    "csISOLatinArabic"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
        charset("ISO-8859-8", "ISO_8859_8",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
                    "iso8859_8", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
                    "8859_8",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
                    "iso-ir-138",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
                    "ISO_8859-8",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
                    "ISO_8859-8:1988",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
                    "ISO8859-8",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
                    "cp916",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
                    "916",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
                    "ibm916",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
                    "ibm-916",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
                    "hebrew",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
                    "csISOLatinHebrew"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
        charset("x-ISO-8859-11", "ISO_8859_11",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
                    "iso-8859-11",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
                    "iso8859_11"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
        charset("TIS-620", "TIS_620",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
                    "tis620", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
                    "tis620.2533"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
        // Various Microsoft Windows international codepages
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
        charset("windows-1255", "MS1255",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
                    "cp1255" // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
        charset("windows-1256", "MS1256",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
                    "cp1256" // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
        charset("windows-1258", "MS1258",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
                    "cp1258" // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
        // IBM & PC/MSDOS encodings
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
        charset("x-IBM942", "IBM942",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
                    "cp942", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
                    "ibm942",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
                    "ibm-942",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
                    "942"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
        charset("x-IBM942C", "IBM942C",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
                    "cp942C", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
                    "ibm942C",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
                    "ibm-942C",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
                    "942C"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
        charset("x-IBM943", "IBM943",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
                    "cp943", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
                    "ibm943",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
                    "ibm-943",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
                    "943"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
        charset("x-IBM943C", "IBM943C",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
                    "cp943C", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
                    "ibm943C",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
                    "ibm-943C",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
                    "943C"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
        charset("x-IBM948", "IBM948",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
                    "cp948", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
                    "ibm948",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
                    "ibm-948",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
                    "948"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
        charset("x-IBM950", "IBM950",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
                    "cp950", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
                    "ibm950",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
                    "ibm-950",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
                    "950"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
        charset("x-IBM930", "IBM930",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
                    "cp930", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
                    "ibm930",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
                    "ibm-930",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
                    "930"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
        charset("x-IBM935", "IBM935",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
                    "cp935", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
                    "ibm935",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
                    "ibm-935",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
                    "935"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
        charset("x-IBM937", "IBM937",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
                    "cp937", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
                    "ibm937",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
                    "ibm-937",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
                    "937"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
        charset("x-IBM856", "IBM856",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
                    "cp856", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
                    "ibm-856",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
                    "ibm856",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
                    "856"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
        charset("IBM860", "IBM860",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
                    "cp860", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
                    "ibm860",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
                    "ibm-860",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
                    "860",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
                    "csIBM860"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
        charset("IBM861", "IBM861",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
                    "cp861", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
                    "ibm861",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
                    "ibm-861",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
                    "861",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
                    "csIBM861",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
                    "cp-is"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
        charset("IBM863", "IBM863",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   531
                    "cp863", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
                    "ibm863",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
                    "ibm-863",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
                    "863",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
                    "csIBM863"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
        charset("IBM864", "IBM864",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
                    "cp864", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
                    "ibm864",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
                    "ibm-864",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
                    "864",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
                    "csIBM864"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
        charset("IBM865", "IBM865",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
                    "cp865", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
                    "ibm865",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
                    "ibm-865",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
                    "865",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
                    "csIBM865"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   555
90ce3da70b43 Initial load
duke
parents:
diff changeset
   556
        charset("IBM868", "IBM868",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   557
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558
                    "cp868", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   559
                    "ibm868",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
                    "ibm-868",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
                    "868",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   562
                    "cp-ar",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
                    "csIBM868"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   564
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   565
90ce3da70b43 Initial load
duke
parents:
diff changeset
   566
        charset("IBM869", "IBM869",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   567
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   568
                    "cp869", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   569
                    "ibm869",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   570
                    "ibm-869",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   571
                    "869",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   572
                    "cp-gr",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   573
                    "csIBM869"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   574
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   575
90ce3da70b43 Initial load
duke
parents:
diff changeset
   576
        charset("x-IBM921", "IBM921",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   577
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   578
                    "cp921", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   579
                    "ibm921",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   580
                    "ibm-921",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
                    "921"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   582
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
90ce3da70b43 Initial load
duke
parents:
diff changeset
   584
        charset("x-IBM1006", "IBM1006",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   585
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   586
                    "cp1006", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   587
                    "ibm1006",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
                    "ibm-1006",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   589
                    "1006"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   590
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   591
90ce3da70b43 Initial load
duke
parents:
diff changeset
   592
        charset("x-IBM1046", "IBM1046",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   593
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   594
                    "cp1046", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   595
                    "ibm1046",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   596
                    "ibm-1046",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   597
                    "1046"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   598
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   599
90ce3da70b43 Initial load
duke
parents:
diff changeset
   600
        charset("IBM1047", "IBM1047",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   602
                    "cp1047", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
                    "ibm-1047",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
                    "1047"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
90ce3da70b43 Initial load
duke
parents:
diff changeset
   607
        charset("x-IBM1098", "IBM1098",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   609
                    "cp1098", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   610
                    "ibm1098",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   611
                    "ibm-1098",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   612
                    "1098",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
        charset("IBM037", "IBM037",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   617
                    "cp037", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
                    "ibm037",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
                    "ebcdic-cp-us",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
                    "ebcdic-cp-ca",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
                    "ebcdic-cp-wt",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
                    "ebcdic-cp-nl",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   623
                    "csIBM037",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   624
                    "cs-ebcdic-cp-us",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
                    "cs-ebcdic-cp-ca",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
                    "cs-ebcdic-cp-wt",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   627
                    "cs-ebcdic-cp-nl",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
                    "ibm-037",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
                    "ibm-37",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
                    "cpibm37",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   631
                    "037"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   632
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   633
90ce3da70b43 Initial load
duke
parents:
diff changeset
   634
        charset("x-IBM1025", "IBM1025",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   635
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
                    "cp1025", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   637
                    "ibm1025",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
                    "ibm-1025",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
                    "1025"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   640
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
90ce3da70b43 Initial load
duke
parents:
diff changeset
   642
        charset("IBM1026", "IBM1026",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
                    "cp1026", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
                    "ibm1026",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   646
                    "ibm-1026",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   647
                    "1026"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   648
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   649
90ce3da70b43 Initial load
duke
parents:
diff changeset
   650
        charset("x-IBM1112", "IBM1112",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   651
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   652
                    "cp1112", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   653
                    "ibm1112",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   654
                    "ibm-1112",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   655
                    "1112"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658
        charset("x-IBM1122", "IBM1122",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   659
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   660
                    "cp1122", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   661
                    "ibm1122",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   662
                    "ibm-1122",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   663
                    "1122"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   664
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   665
90ce3da70b43 Initial load
duke
parents:
diff changeset
   666
        charset("x-IBM1123", "IBM1123",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   667
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   668
                    "cp1123", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   669
                    "ibm1123",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   670
                    "ibm-1123",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   671
                    "1123"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   672
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   673
90ce3da70b43 Initial load
duke
parents:
diff changeset
   674
        charset("x-IBM1124", "IBM1124",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   675
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   676
                    "cp1124", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   677
                    "ibm1124",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   678
                    "ibm-1124",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   679
                    "1124"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   680
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   681
8795
d235a77ef918 6803681: RFE: Need new codeset converter for IBM Cp1364
sherman
parents: 7668
diff changeset
   682
        charset("x-IBM1364", "IBM1364",
d235a77ef918 6803681: RFE: Need new codeset converter for IBM Cp1364
sherman
parents: 7668
diff changeset
   683
                new String[] {
d235a77ef918 6803681: RFE: Need new codeset converter for IBM Cp1364
sherman
parents: 7668
diff changeset
   684
                    "cp1364",
d235a77ef918 6803681: RFE: Need new codeset converter for IBM Cp1364
sherman
parents: 7668
diff changeset
   685
                    "ibm1364",
d235a77ef918 6803681: RFE: Need new codeset converter for IBM Cp1364
sherman
parents: 7668
diff changeset
   686
                    "ibm-1364",
d235a77ef918 6803681: RFE: Need new codeset converter for IBM Cp1364
sherman
parents: 7668
diff changeset
   687
                    "1364"
d235a77ef918 6803681: RFE: Need new codeset converter for IBM Cp1364
sherman
parents: 7668
diff changeset
   688
                });
d235a77ef918 6803681: RFE: Need new codeset converter for IBM Cp1364
sherman
parents: 7668
diff changeset
   689
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   690
        charset("IBM273", "IBM273",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   691
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   692
                    "cp273", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   693
                    "ibm273",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   694
                    "ibm-273",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   695
                    "273"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   696
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   697
90ce3da70b43 Initial load
duke
parents:
diff changeset
   698
        charset("IBM277", "IBM277",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   699
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   700
                    "cp277", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   701
                    "ibm277",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   702
                    "ibm-277",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   703
                    "277"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   704
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   705
90ce3da70b43 Initial load
duke
parents:
diff changeset
   706
        charset("IBM278", "IBM278",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   707
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   708
                    "cp278", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   709
                    "ibm278",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   710
                    "ibm-278",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   711
                    "278",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   712
                    "ebcdic-sv",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   713
                    "ebcdic-cp-se",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   714
                    "csIBM278"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   715
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   716
90ce3da70b43 Initial load
duke
parents:
diff changeset
   717
        charset("IBM280", "IBM280",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   718
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   719
                    "cp280", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   720
                    "ibm280",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   721
                    "ibm-280",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   722
                    "280"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   723
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   724
90ce3da70b43 Initial load
duke
parents:
diff changeset
   725
        charset("IBM284", "IBM284",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   726
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   727
                    "cp284", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   728
                    "ibm284",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   729
                    "ibm-284",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   730
                    "284",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   731
                    "csIBM284",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   732
                    "cpibm284"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   733
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   734
90ce3da70b43 Initial load
duke
parents:
diff changeset
   735
        charset("IBM285", "IBM285",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   736
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   737
                    "cp285", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   738
                    "ibm285",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   739
                    "ibm-285",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   740
                    "285",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   741
                    "ebcdic-cp-gb",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   742
                    "ebcdic-gb",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   743
                    "csIBM285",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   744
                    "cpibm285"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   745
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   746
90ce3da70b43 Initial load
duke
parents:
diff changeset
   747
        charset("IBM297", "IBM297",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   748
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   749
                    "cp297", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   750
                    "ibm297",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   751
                    "ibm-297",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   752
                    "297",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   753
                    "ebcdic-cp-fr",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   754
                    "cpibm297",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   755
                    "csIBM297",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   756
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   757
90ce3da70b43 Initial load
duke
parents:
diff changeset
   758
        charset("IBM420", "IBM420",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   759
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   760
                    "cp420", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   761
                    "ibm420",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   762
                    "ibm-420",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   763
                    "ebcdic-cp-ar1",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   764
                    "420",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   765
                    "csIBM420"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   766
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   767
90ce3da70b43 Initial load
duke
parents:
diff changeset
   768
        charset("IBM424", "IBM424",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   769
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   770
                    "cp424", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   771
                    "ibm424",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   772
                    "ibm-424",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   773
                    "424",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   774
                    "ebcdic-cp-he",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   775
                    "csIBM424"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   776
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   777
90ce3da70b43 Initial load
duke
parents:
diff changeset
   778
        charset("IBM500", "IBM500",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   779
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   780
                    "cp500", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   781
                    "ibm500",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   782
                    "ibm-500",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   783
                    "500",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   784
                    "ebcdic-cp-ch",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   785
                    "ebcdic-cp-bh",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   786
                    "csIBM500"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   787
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   788
7274
add26affe264 6217210: RFE: Support for Cp833 in 1.4.2
sherman
parents: 5506
diff changeset
   789
        charset("x-IBM833", "IBM833",
add26affe264 6217210: RFE: Support for Cp833 in 1.4.2
sherman
parents: 5506
diff changeset
   790
                new String[] {
add26affe264 6217210: RFE: Support for Cp833 in 1.4.2
sherman
parents: 5506
diff changeset
   791
                     "cp833",
add26affe264 6217210: RFE: Support for Cp833 in 1.4.2
sherman
parents: 5506
diff changeset
   792
                     "ibm833",
add26affe264 6217210: RFE: Support for Cp833 in 1.4.2
sherman
parents: 5506
diff changeset
   793
                     "ibm-833"
add26affe264 6217210: RFE: Support for Cp833 in 1.4.2
sherman
parents: 5506
diff changeset
   794
                 });
add26affe264 6217210: RFE: Support for Cp833 in 1.4.2
sherman
parents: 5506
diff changeset
   795
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   796
        //EBCDIC DBCS-only Korean
90ce3da70b43 Initial load
duke
parents:
diff changeset
   797
        charset("x-IBM834", "IBM834",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   798
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   799
                    "cp834",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   800
                    "ibm834",
1628
4f3b05fdd169 6745216: missing 4 chraset aliases in sun.nio.cs package
sherman
parents: 1146
diff changeset
   801
                    "834",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   802
                    "ibm-834"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   803
        });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   804
90ce3da70b43 Initial load
duke
parents:
diff changeset
   805
90ce3da70b43 Initial load
duke
parents:
diff changeset
   806
        charset("IBM-Thai", "IBM838",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   807
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   808
                    "cp838", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   809
                    "ibm838",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   810
                    "ibm-838",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   811
                    "838"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   812
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   813
90ce3da70b43 Initial load
duke
parents:
diff changeset
   814
        charset("IBM870", "IBM870",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   815
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   816
                    "cp870", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   817
                    "ibm870",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   818
                    "ibm-870",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   819
                    "870",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   820
                    "ebcdic-cp-roece",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   821
                    "ebcdic-cp-yu",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   822
                    "csIBM870"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   823
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   824
90ce3da70b43 Initial load
duke
parents:
diff changeset
   825
        charset("IBM871", "IBM871",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   826
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   827
                    "cp871", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   828
                    "ibm871",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   829
                    "ibm-871",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   830
                    "871",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   831
                    "ebcdic-cp-is",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   832
                    "csIBM871"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   833
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   834
90ce3da70b43 Initial load
duke
parents:
diff changeset
   835
        charset("x-IBM875", "IBM875",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   836
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   837
                    "cp875", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   838
                    "ibm875",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   839
                    "ibm-875",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   840
                    "875"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   841
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   842
90ce3da70b43 Initial load
duke
parents:
diff changeset
   843
        charset("IBM918", "IBM918",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   844
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   845
                    "cp918", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   846
                    "ibm-918",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   847
                    "918",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   848
                    "ebcdic-cp-ar2"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   849
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   850
90ce3da70b43 Initial load
duke
parents:
diff changeset
   851
        charset("x-IBM922", "IBM922",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   852
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   853
                    "cp922", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   854
                    "ibm922",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   855
                    "ibm-922",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   856
                    "922"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   857
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   858
90ce3da70b43 Initial load
duke
parents:
diff changeset
   859
        charset("x-IBM1097", "IBM1097",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   860
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   861
                    "cp1097", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   862
                    "ibm1097",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   863
                    "ibm-1097",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   864
                    "1097"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   865
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   866
90ce3da70b43 Initial load
duke
parents:
diff changeset
   867
        charset("x-IBM949", "IBM949",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   868
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   869
                    "cp949", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   870
                    "ibm949",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   871
                    "ibm-949",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   872
                    "949"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   873
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   874
90ce3da70b43 Initial load
duke
parents:
diff changeset
   875
        charset("x-IBM949C", "IBM949C",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   876
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   877
                    "cp949C", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   878
                    "ibm949C",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   879
                    "ibm-949C",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   880
                    "949C"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   881
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   882
90ce3da70b43 Initial load
duke
parents:
diff changeset
   883
        charset("x-IBM939", "IBM939",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   884
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   885
                    "cp939", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   886
                    "ibm939",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   887
                    "ibm-939",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   888
                    "939"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   889
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   890
90ce3da70b43 Initial load
duke
parents:
diff changeset
   891
        charset("x-IBM933", "IBM933",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   892
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   893
                    "cp933", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   894
                    "ibm933",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   895
                    "ibm-933",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   896
                    "933"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   897
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   898
90ce3da70b43 Initial load
duke
parents:
diff changeset
   899
        charset("x-IBM1381", "IBM1381",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   900
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   901
                    "cp1381", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   902
                    "ibm1381",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   903
                    "ibm-1381",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   904
                    "1381"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   905
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   906
90ce3da70b43 Initial load
duke
parents:
diff changeset
   907
        charset("x-IBM1383", "IBM1383",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   908
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   909
                    "cp1383", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   910
                    "ibm1383",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   911
                    "ibm-1383",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   912
                    "1383"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   913
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   914
90ce3da70b43 Initial load
duke
parents:
diff changeset
   915
        charset("x-IBM970", "IBM970",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   916
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   917
                    "cp970", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   918
                    "ibm970",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   919
                    "ibm-970",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   920
                    "ibm-eucKR",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   921
                    "970"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   922
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   923
90ce3da70b43 Initial load
duke
parents:
diff changeset
   924
        charset("x-IBM964", "IBM964",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   925
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   926
                    "cp964", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   927
                    "ibm964",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   928
                    "ibm-964",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   929
                    "964"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   930
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   931
90ce3da70b43 Initial load
duke
parents:
diff changeset
   932
        charset("x-IBM33722", "IBM33722",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   933
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   934
                    "cp33722", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   935
                    "ibm33722",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   936
                    "ibm-33722",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   937
                    "ibm-5050", // from IBM alias list
90ce3da70b43 Initial load
duke
parents:
diff changeset
   938
                    "ibm-33722_vascii_vpua", // from IBM alias list
90ce3da70b43 Initial load
duke
parents:
diff changeset
   939
                    "33722"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   940
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   941
90ce3da70b43 Initial load
duke
parents:
diff changeset
   942
        charset("IBM01140", "IBM1140",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   943
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   944
                    "cp1140", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   945
                    "ccsid01140",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   946
                    "cp01140",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   947
                    "1140",
1146
bbcbf6618d8c 4849617: (cs)Revise Charset spec to allow '+' in names
sherman
parents: 715
diff changeset
   948
                    "ebcdic-us-037+euro"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   949
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   950
90ce3da70b43 Initial load
duke
parents:
diff changeset
   951
        charset("IBM01141", "IBM1141",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   952
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   953
                    "cp1141", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   954
                    "ccsid01141",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   955
                    "cp01141",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   956
                    "1141",
1146
bbcbf6618d8c 4849617: (cs)Revise Charset spec to allow '+' in names
sherman
parents: 715
diff changeset
   957
                    "ebcdic-de-273+euro"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   958
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   959
90ce3da70b43 Initial load
duke
parents:
diff changeset
   960
        charset("IBM01142", "IBM1142",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   961
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   962
                    "cp1142", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   963
                    "ccsid01142",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   964
                    "cp01142",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   965
                    "1142",
1146
bbcbf6618d8c 4849617: (cs)Revise Charset spec to allow '+' in names
sherman
parents: 715
diff changeset
   966
                    "ebcdic-no-277+euro",
bbcbf6618d8c 4849617: (cs)Revise Charset spec to allow '+' in names
sherman
parents: 715
diff changeset
   967
                    "ebcdic-dk-277+euro"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   968
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   969
90ce3da70b43 Initial load
duke
parents:
diff changeset
   970
        charset("IBM01143", "IBM1143",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   971
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   972
                    "cp1143", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   973
                    "ccsid01143",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   974
                    "cp01143",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   975
                    "1143",
1146
bbcbf6618d8c 4849617: (cs)Revise Charset spec to allow '+' in names
sherman
parents: 715
diff changeset
   976
                    "ebcdic-fi-278+euro",
bbcbf6618d8c 4849617: (cs)Revise Charset spec to allow '+' in names
sherman
parents: 715
diff changeset
   977
                    "ebcdic-se-278+euro"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   978
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   979
90ce3da70b43 Initial load
duke
parents:
diff changeset
   980
        charset("IBM01144", "IBM1144",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   981
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   982
                    "cp1144", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   983
                    "ccsid01144",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   984
                    "cp01144",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   985
                    "1144",
1146
bbcbf6618d8c 4849617: (cs)Revise Charset spec to allow '+' in names
sherman
parents: 715
diff changeset
   986
                    "ebcdic-it-280+euro"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   987
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   988
90ce3da70b43 Initial load
duke
parents:
diff changeset
   989
        charset("IBM01145", "IBM1145",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   990
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   991
                    "cp1145", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   992
                    "ccsid01145",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   993
                    "cp01145",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   994
                    "1145",
1146
bbcbf6618d8c 4849617: (cs)Revise Charset spec to allow '+' in names
sherman
parents: 715
diff changeset
   995
                    "ebcdic-es-284+euro"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   996
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   997
90ce3da70b43 Initial load
duke
parents:
diff changeset
   998
        charset("IBM01146", "IBM1146",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   999
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1000
                    "cp1146", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1001
                    "ccsid01146",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1002
                    "cp01146",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1003
                    "1146",
1146
bbcbf6618d8c 4849617: (cs)Revise Charset spec to allow '+' in names
sherman
parents: 715
diff changeset
  1004
                    "ebcdic-gb-285+euro"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1005
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1006
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1007
        charset("IBM01147", "IBM1147",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1008
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1009
                    "cp1147", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1010
                    "ccsid01147",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1011
                    "cp01147",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1012
                    "1147",
1146
bbcbf6618d8c 4849617: (cs)Revise Charset spec to allow '+' in names
sherman
parents: 715
diff changeset
  1013
                    "ebcdic-fr-277+euro"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1014
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1015
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1016
        charset("IBM01148", "IBM1148",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1017
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1018
                    "cp1148", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1019
                    "ccsid01148",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1020
                    "cp01148",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1021
                    "1148",
1146
bbcbf6618d8c 4849617: (cs)Revise Charset spec to allow '+' in names
sherman
parents: 715
diff changeset
  1022
                    "ebcdic-international-500+euro"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1023
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1024
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1025
        charset("IBM01149", "IBM1149",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1026
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1027
                    "cp1149", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1028
                    "ccsid01149",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1029
                    "cp01149",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1030
                    "1149",
1146
bbcbf6618d8c 4849617: (cs)Revise Charset spec to allow '+' in names
sherman
parents: 715
diff changeset
  1031
                    "ebcdic-s-871+euro"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1032
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1033
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1034
        // Macintosh MacOS/Apple char encodingd
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1035
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1036
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1037
        charset("x-MacRoman", "MacRoman",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1038
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1039
                    "MacRoman" // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1040
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1041
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1042
        charset("x-MacCentralEurope", "MacCentralEurope",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1043
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1044
                    "MacCentralEurope" // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1045
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1046
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1047
        charset("x-MacCroatian", "MacCroatian",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1048
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1049
                    "MacCroatian" // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1050
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1051
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1052
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1053
        charset("x-MacGreek", "MacGreek",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1054
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1055
                    "MacGreek" // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1056
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1057
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1058
        charset("x-MacCyrillic", "MacCyrillic",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1059
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1060
                    "MacCyrillic" // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1061
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1062
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1063
        charset("x-MacUkraine", "MacUkraine",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1064
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1065
                    "MacUkraine" // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1066
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1067
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1068
        charset("x-MacTurkish", "MacTurkish",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1069
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1070
                    "MacTurkish" // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1071
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1072
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1073
        charset("x-MacArabic", "MacArabic",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1074
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1075
                    "MacArabic" // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1076
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1077
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1078
        charset("x-MacHebrew", "MacHebrew",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1079
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1080
                    "MacHebrew" // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1081
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1082
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1083
        charset("x-MacIceland", "MacIceland",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1084
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1085
                    "MacIceland" // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1086
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1087
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1088
        charset("x-MacRomania", "MacRomania",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1089
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1090
                    "MacRomania" // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1091
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1092
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1093
        charset("x-MacThai", "MacThai",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1094
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1095
                    "MacThai" // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1096
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1097
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1098
        charset("x-MacSymbol", "MacSymbol",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1099
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1100
                    "MacSymbol" // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1101
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1102
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1103
        charset("x-MacDingbat", "MacDingbat",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1104
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1105
                    "MacDingbat" // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1106
                });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1107
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1108
        instance = this;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1109
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1110
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1111
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1112
    private boolean initialized = false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1113
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1114
    // If the sun.nio.cs.map property is defined on the command line we won't
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1115
    // see it in the system-properties table until after the charset subsystem
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1116
    // has been initialized.  We therefore delay the effect of this property
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1117
    // until after the JRE has completely booted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1118
    //
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1119
    // At the moment following values for this property are supported, property
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1120
    // value string is case insensitive.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1121
    //
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1122
    // (1)"Windows-31J/Shift_JIS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1123
    // In 1.4.1 we added a correct implementation of the Shift_JIS charset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1124
    // but in previous releases this charset name had been treated as an alias
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1125
    // for Windows-31J, aka MS932. Users who have existing code that depends
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1126
    // upon this alias can restore the previous behavior by defining this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1127
    // property to have this value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1128
    //
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1129
    // (2)"x-windows-50221/ISO-2022-JP"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1130
    //    "x-windows-50220/ISO-2022-JP"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1131
    //    "x-windows-iso2022jp/ISO-2022-JP"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1132
    // The charset ISO-2022-JP is a "standard based" implementation by default,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1133
    // which supports ASCII, JIS_X_0201 and JIS_X_0208 mappings based encoding
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1134
    // and decoding only.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1135
    // There are three Microsoft iso-2022-jp variants, namely x-windows-50220,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1136
    // x-windows-50221 and x-windows-iso2022jp which behaves "slightly" differently
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1137
    // compared to the "standard based" implementation. See ISO2022_JP.java for
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1138
    // detailed description. Users who prefer the behavior of MS iso-2022-jp
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1139
    // variants should use these names explicitly instead of using "ISO-2022-JP"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1140
    // and its aliases. However for those who need the ISO-2022-JP charset behaves
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1141
    // exactly the same as MS variants do, above properties can be defined to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1142
    // switch.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1143
    //
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1144
    // If we need to define other charset-alias mappings in the future then
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1145
    // this property could be further extended, the general idea being that its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1146
    // value should be of the form
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1147
    //
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1148
    //     new-charset-1/old-charset-1,new-charset-2/old-charset-2,...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1149
    //
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1150
    // where each charset named to the left of a slash is intended to replace
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1151
    // (most) uses of the charset named to the right of the slash.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1152
    //
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1153
    protected void init() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1154
        if (initialized)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1155
            return;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1156
        if (!sun.misc.VM.isBooted())
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1157
            return;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1158
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1159
        String map = AccessController.doPrivileged(
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1160
            new GetPropertyAction("sun.nio.cs.map"));
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1161
        boolean sjisIsMS932 = false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1162
        boolean iso2022jpIsMS50221 = false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1163
        boolean iso2022jpIsMS50220 = false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1164
        boolean iso2022jpIsMSISO2022JP = false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1165
        if (map != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1166
            String[] maps = map.split(",");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1167
            for (int i = 0; i < maps.length; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1168
                if (maps[i].equalsIgnoreCase("Windows-31J/Shift_JIS")) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1169
                    sjisIsMS932 = true;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1170
                } else if (maps[i].equalsIgnoreCase("x-windows-50221/ISO-2022-JP")) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1171
                    iso2022jpIsMS50221 = true;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1172
                } else if (maps[i].equalsIgnoreCase("x-windows-50220/ISO-2022-JP")) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1173
                    iso2022jpIsMS50220 = true;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1174
                } else if (maps[i].equalsIgnoreCase("x-windows-iso2022jp/ISO-2022-JP")) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1175
                    iso2022jpIsMSISO2022JP = true;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1176
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1177
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1178
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1179
        if (sjisIsMS932) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1180
            deleteCharset("Shift_JIS",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1181
                          new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1182
                              // IANA aliases
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1183
                              "sjis", // historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1184
                              "shift_jis",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1185
                              "shift-jis",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1186
                              "ms_kanji",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1187
                              "x-sjis",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1188
                              "csShiftJIS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1189
                          });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1190
            deleteCharset("windows-31j",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1191
                          new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1192
                              "MS932", // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1193
                              "windows-932",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1194
                              "csWindows31J"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1195
                          });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1196
            charset("Shift_JIS", "SJIS",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1197
                    new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1198
                        // IANA aliases
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1199
                        "sjis"          // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1200
                    });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1201
            charset("windows-31j", "MS932",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1202
                    new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1203
                        "MS932",        // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1204
                        "windows-932",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1205
                        "csWindows31J",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1206
                        "shift-jis",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1207
                        "ms_kanji",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1208
                        "x-sjis",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1209
                        "csShiftJIS",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1210
                        // This alias takes precedence over the actual
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1211
                        // Shift_JIS charset itself since aliases are always
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1212
                        // resolved first, before looking up canonical names.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1213
                        "shift_jis"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1214
                    });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1215
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1216
        if (iso2022jpIsMS50221 ||
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1217
            iso2022jpIsMS50220 ||
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1218
            iso2022jpIsMSISO2022JP) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1219
            deleteCharset("ISO-2022-JP",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1220
                          new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1221
                              "iso2022jp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1222
                                "jis",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1223
                                "csISO2022JP",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1224
                                "jis_encoding",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1225
                                "csjisencoding"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1226
                          });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1227
            if (iso2022jpIsMS50221) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1228
                deleteCharset("x-windows-50221",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1229
                              new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1230
                                  "cp50221",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1231
                                  "ms50221"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1232
                              });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1233
                charset("x-windows-50221", "MS50221",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1234
                        new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1235
                            "cp50221",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1236
                            "ms50221",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1237
                            "iso-2022-jp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1238
                            "iso2022jp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1239
                            "jis",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1240
                            "csISO2022JP",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1241
                            "jis_encoding",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1242
                            "csjisencoding"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1243
                        });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1244
            } else if (iso2022jpIsMS50220) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1245
                deleteCharset("x-windows-50220",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1246
                              new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1247
                                  "cp50220",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1248
                                  "ms50220"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1249
                              });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1250
                charset("x-windows-50220", "MS50220",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1251
                        new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1252
                            "cp50220",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1253
                            "ms50220",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1254
                            "iso-2022-jp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1255
                            "iso2022jp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1256
                            "jis",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1257
                            "csISO2022JP",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1258
                            "jis_encoding",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1259
                            "csjisencoding"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1260
                        });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1261
            } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1262
                deleteCharset("x-windows-iso2022jp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1263
                              new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1264
                                  "windows-iso2022jp"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1265
                              });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1266
                charset("x-windows-iso2022jp", "MSISO2022JP",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1267
                        new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1268
                            "windows-iso2022jp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1269
                            "iso-2022-jp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1270
                            "iso2022jp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1271
                            "jis",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1272
                            "csISO2022JP",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1273
                            "jis_encoding",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1274
                            "csjisencoding"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1275
                        });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1276
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1277
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1278
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1279
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1280
        String osName = AccessController.doPrivileged(
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1281
            new GetPropertyAction("os.name"));
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1282
        if ("SunOS".equals(osName) || "Linux".equals(osName)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1283
            charset("x-COMPOUND_TEXT", "COMPOUND_TEXT",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1284
                    new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1285
                        "COMPOUND_TEXT",        // JDK historical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1286
                        "x11-compound_text",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1287
                        "x-compound-text"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1288
                    });
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1289
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1290
        initialized = true;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1291
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1292
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1293
    public static String[] aliasesFor(String charsetName) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1294
        if (instance == null)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1295
            return null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1296
        return instance.aliases(charsetName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1297
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1298
}