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

(1.1) JDK118[Win32] getCanonicalPath doesn't work for Kanji directory name

XMLWordPrintable

    • 1.1.8
    • x86
    • generic
    • Verified

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

            sherman Xueming Shen
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: