-
Type:
Bug
-
Status: Closed
-
Priority:
P2
-
Resolution: Duplicate
-
Affects Version/s: 1.1.8
-
Fix Version/s: None
-
Component/s: core-libs
-
Labels:
-
Subcomponent:
-
CPU:x86
-
OS:generic
rt.exec throws IO Exception when using the exec whose name is Japanese
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) prepare a exe file with kanji name
A:\TEST>copy args.exe °ú¿ô.exe /v
-------- --------
ascii kanji
2) compile RunExe.java
import java.io.*;
public class RunExe {
public static void main(String args[]) throws IOException {
Runtime rt = Runtime.getRuntime();
Process ps = null;
try {
ps = rt.exec(args[0]);
} catch(IOException e) {
System.out.println("IO Exception spawning \"" + args[0] + "\"");
}
if(null == ps) {
System.out.println("could not exec \"" + args[0] + "\"");
} else {
System.out.println("OK");
ps.destroy();
}
}
}
3) run RunExe.class with a kanji arg on Windows98/NT
A:\TEST>java RunExe args
OK
A:\TEST>java RunExe °ú¿ô
IO Exception spawning "°ú¿ô"
could not exec "°ú¿ô"
(*) °ú¿ô : Japanese Kanji Characters
I can't see this problem on Solaris with JDK1.1.8 build "C".
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) prepare a exe file with kanji name
A:\TEST>copy args.exe °ú¿ô.exe /v
-------- --------
ascii kanji
2) compile RunExe.java
import java.io.*;
public class RunExe {
public static void main(String args[]) throws IOException {
Runtime rt = Runtime.getRuntime();
Process ps = null;
try {
ps = rt.exec(args[0]);
} catch(IOException e) {
System.out.println("IO Exception spawning \"" + args[0] + "\"");
}
if(null == ps) {
System.out.println("could not exec \"" + args[0] + "\"");
} else {
System.out.println("OK");
ps.destroy();
}
}
}
3) run RunExe.class with a kanji arg on Windows98/NT
A:\TEST>java RunExe args
OK
A:\TEST>java RunExe °ú¿ô
IO Exception spawning "°ú¿ô"
could not exec "°ú¿ô"
(*) °ú¿ô : Japanese Kanji Characters
I can't see this problem on Solaris with JDK1.1.8 build "C".
- duplicates
-
JDK-4197841 (1.1) JDK118[Win32] getCanonicalPath doesn't work for Kanji directory name
-
- Closed
-