5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * This code is free software; you can redistribute it and/or modify it
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * under the terms of the GNU General Public License version 2 only, as
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * published by the Free Software Foundation.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * This code is distributed in the hope that it will be useful, but WITHOUT
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * version 2 for more details (a copy is included in the LICENSE file that
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * accompanied this code).
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * You should have received a copy of the GNU General Public License version
dff2cc5646d4437ab9e0cb1dcb59da65462a5938jeff.schenk * 2 along with this work; if not, write to the Free Software Foundation,
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
dff2cc5646d4437ab9e0cb1dcb59da65462a5938jeff.schenk * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * or visit www.oracle.com if you need additional information or have any
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * questions.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk @bug 4513767 4961027 6217210
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk @summary Checks canonical names match between old and (NIO) core charsets
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk public static void main (String[] args) throws Exception {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk checkMappedName("UTF-16BE", "UnicodeBigUnmarked");
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk checkMappedName("UTF-16LE", "UnicodeLittleUnmarked");
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk checkMappedName("EUC-JP-LINUX", "EUC_JP_LINUX");
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk checkMappedName("x-MS950-HKSCS", "MS950_HKSCS");
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk checkMappedName("x-JISAutoDetect", "JISAutoDetect");
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk checkMappedName("x-Big5-Solaris", "Big5_Solaris");
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk checkMappedName("x-MacCentralEurope", "MacCentralEurope");
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk checkMappedName("x-MacCroatian", "MacCroatian");
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk checkMappedName("x-MacCyrillic", "MacCyrillic");
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk private static void checkHistoricalName(String name) throws Exception {
dff2cc5646d4437ab9e0cb1dcb59da65462a5938jeff.schenk private static void checkMappedName(String alias, String canonical)
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk InputStreamReader reader = new InputStreamReader(System.in, alias);
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk System.out.println("Failed canonical names : mismatch for " + alias