getCanonicalPath doesn't work for Kanji directory name on Win98 and WinNT4.0
with JDK1.1.8 build "C".
This worked on JDK1.1.7. So this is a regression bug.
How to reproduce:
1) compile ShowDir.java
import java.io.*;
public class ShowDir {
public static void main(String args[]) throws IOException {
System.out.println("user dir property:" +
System.getProperty("user.dir"));
System.out.println("canonical path :" +
new File("").getCanonicalPath());
}
}
2) run ShowDir.class in a kanji directory on Windows98/NT
A:\TEST>java ShowDir
user dir property:A:\TEST
canonical path :A:\test
A:\TEST>cd ´Á»ú
A:\TEST\´Á»ú>java ShowDir
user dir property:A:\TEST\´Á»ú
canonical path :A:\test\"W
(*) ´Á»ú : Japanese Kanji Characters
I can't see this problem on Solaris with JDK1.1.8 build "C".
with JDK1.1.8 build "C".
This worked on JDK1.1.7. So this is a regression bug.
How to reproduce:
1) compile ShowDir.java
import java.io.*;
public class ShowDir {
public static void main(String args[]) throws IOException {
System.out.println("user dir property:" +
System.getProperty("user.dir"));
System.out.println("canonical path :" +
new File("").getCanonicalPath());
}
}
2) run ShowDir.class in a kanji directory on Windows98/NT
A:\TEST>java ShowDir
user dir property:A:\TEST
canonical path :A:\test
A:\TEST>cd ´Á»ú
A:\TEST\´Á»ú>java ShowDir
user dir property:A:\TEST\´Á»ú
canonical path :A:\test\"W
(*) ´Á»ú : Japanese Kanji Characters
I can't see this problem on Solaris with JDK1.1.8 build "C".
- duplicates
-
JDK-4197843 JDK118[Win32] rt.exec throws IO Exception when using Japanese exec
- Closed
-
JDK-4197844 JDK118[Win32] javadoc doesn't work for Japanese directory name
- Closed