URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 765 |
Rev 783 |
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
|
|
public class PR36252
|
public class PR36252
|
{
|
{
|
public static void main(String[] args)
|
public static void main(String[] args)
|
{
|
{
|
try {
|
try {
|
byte[] txt = new byte[] {-55, 87, -55, -42, -55, -20};
|
byte[] txt = new byte[] {-55, 87, -55, -42, -55, -20};
|
// This new String(...) should not throw an OutOfMemoryError.
|
// This new String(...) should not throw an OutOfMemoryError.
|
String s = new String(txt, 0, 6, "MS932");
|
String s = new String(txt, 0, 6, "MS932");
|
} catch (UnsupportedEncodingException e) {
|
} catch (UnsupportedEncodingException e) {
|
// Silently ignore.
|
// Silently ignore.
|
}
|
}
|
System.out.println("ok");
|
System.out.println("ok");
|
}
|
}
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.