-
Bug
-
Resolution: Fixed
-
P1
-
1.1
-
1.1fcs
-
generic
-
generic
-
Not verified
masayoshi.okutsu@Eng 1996-12-20
Note that this bug description includes characters in EUCJIS (aka eucJP).
IOException thrown by RandomAccessFile() doesn't output Japanese
characters.
When the given file name to RandomAccessFile() includes Japanese (Han)
characters, IOException outputs an unreadable filename or "?"'s if file
does not exist.
%java test
java.io.IOException: ÑãÑ…Ñ
java.io.IOException: xxx
java.io.IOException: ??????
Source program:
import java.io.* ;
public class test{
public static void main(String xx[]){
try{
RandomAccessFile RAF = new RandomAccessFile("\u30c6\u30b9\u30c8","r");
}catch(Exception e){
IOException i = new IOException ("\u30c6\u30b9\u30c8") ;
System.out.println(i) ;
}
try{
RandomAccessFile RAF = new RandomAccessFile("xxx","r");
}catch(IOException e){
System.out.println(e) ;
}
try{
RandomAccessFile RAF = new RandomAccessFile("\u30c6\u30b9\u30c8","r");
}catch(Exception e){
System.out.println(e) ;
}
}
Note that this bug description includes characters in EUCJIS (aka eucJP).
IOException thrown by RandomAccessFile() doesn't output Japanese
characters.
When the given file name to RandomAccessFile() includes Japanese (Han)
characters, IOException outputs an unreadable filename or "?"'s if file
does not exist.
%java test
java.io.IOException: ÑãÑ…Ñ
java.io.IOException: xxx
java.io.IOException: ??????
Source program:
import java.io.* ;
public class test{
public static void main(String xx[]){
try{
RandomAccessFile RAF = new RandomAccessFile("\u30c6\u30b9\u30c8","r");
}catch(Exception e){
IOException i = new IOException ("\u30c6\u30b9\u30c8") ;
System.out.println(i) ;
}
try{
RandomAccessFile RAF = new RandomAccessFile("xxx","r");
}catch(IOException e){
System.out.println(e) ;
}
try{
RandomAccessFile RAF = new RandomAccessFile("\u30c6\u30b9\u30c8","r");
}catch(Exception e){
System.out.println(e) ;
}
}