Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4197843

JDK118[Win32] rt.exec throws IO Exception when using Japanese exec

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 1.1.8
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      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".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sherman Xueming Shen
                Reporter:
                duke J. Duke (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: