/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4087261 4184592
* @summary Make sure to determine Japanese text encoding as correctly
* as possible.
*/
public class JISAutoDetectTest {
class TestData {
byte[] input;
}
}
break;
true);
true);
true);
true);
}
throw new Exception("JISAutoDetect returned a wrong result");
}
}
}
public JISAutoDetectTest() {
int i = 0;
// 0
(byte)'r', (byte)'i', (byte)'g', (byte)'h',
(byte)'t', (byte)' ', (byte)0xa9, (byte)' ',
(byte)'1', (byte)'9', (byte)'9', (byte)'8' };
// 1
i++;
(byte)0xb8, (byte)0xdb, (byte)0xbc, (byte)0xbd,
(byte)0xc3, (byte)0xd1, (byte)0xbd, (byte)0xde,
(byte)0x82, (byte)0xc5, (byte)0x82, (byte)0xb7 };
// 2
i++;
(byte)0xb8, (byte)0xdb, (byte)0xbc, (byte)0xbd,
(byte)0xc3, (byte)0xd1, (byte)0xbd, (byte)0xde};
// 3
i++;
(byte)0xb8, (byte)0xdb, (byte)0xbc, (byte)0xbd,
(byte)0xc3, (byte)0xd1, (byte)0xbd };
// 4
i++;
// 5
i++;
(byte)0xa4, (byte)0xac, (byte)0xa4, (byte)0xca };
// 6
i++;
(byte)0xb8, (byte)0xdb, (byte)0xbc, (byte)0xbd,
(byte)0xc3, (byte)0xd1, (byte)0xbd, (byte)0xde,
(byte)0xa4, (byte)0xc7, (byte)0xa4, (byte)0xb9 };
// 7 (for 4184592)
i++;
(byte)'#', (byte)'4', (byte)'$', (byte)'5',
(byte)0x1b, (byte)'(', (byte)'B' };
}
}