mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-26 16:29:28 +00:00
17 lines
417 B
Java
17 lines
417 B
Java
import java.io.UnsupportedEncodingException;
|
|
|
|
public class PR36252
|
|
{
|
|
public static void main(String[] args)
|
|
{
|
|
try {
|
|
byte[] txt = new byte[] {-55, 87, -55, -42, -55, -20};
|
|
// This new String(...) should not throw an OutOfMemoryError.
|
|
String s = new String(txt, 0, 6, "MS932");
|
|
} catch (UnsupportedEncodingException e) {
|
|
// Silently ignore.
|
|
}
|
|
System.out.println("ok");
|
|
}
|
|
}
|