2362N/A * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. 395N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 395N/A * This code is free software; you can redistribute it and/or modify it 395N/A * under the terms of the GNU General Public License version 2 only, as 395N/A * published by the Free Software Foundation. 395N/A * This code is distributed in the hope that it will be useful, but WITHOUT 395N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 395N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 395N/A * version 2 for more details (a copy is included in the LICENSE file that 395N/A * accompanied this code). 395N/A * You should have received a copy of the GNU General Public License version 395N/A * 2 along with this work; if not, write to the Free Software Foundation, 395N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 1245N/A @bug 6371437 6371422 6371416 6371619 5058184 6371431 6639450 6569191 6577466 395N/A @summary Check if the problems reported in above bugs have been fixed 395N/A for (
int i =
1; i <
0x1ffff; i++) {
395N/A if (i >=
0x1100 && i <=
0x11f9)
395N/A continue;
//Dont try leading consonant, vowel and trailing 395N/A //consonant as a single char 395N/A ?
new char[] { (
char)i }
395N/A :
new char[] { (
char)(
0xd800 + ((i -
0x10000) >>
10)),
395N/A (
char)(
0xdc00 + ((i -
0x10000) &
0x3ff)) });
395N/A for (
int i =
0xd800; i <
0xe000; i++) {
395N/A char[]
in =
new char[] { (
char)i };
395N/A for (
int b =
0x80; b <
0x100; b++)
395N/A if (!(b ==
0x8e ||
// 0x8e is a SS2 395N/A (b >=
0x80 && b <=
0x8d) || (b >=
0x90 && b <=
0x9f))) {
395N/A for (
int b =
0xa0; b <
0x100; b++) {
1245N/A byte[]
bs =
new byte[] { (
byte)
0x81, (
byte)
0xad,
1245N/A if (!
"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd" 1245N/A // need to be tested before any other IBM949C test case