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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.1.8
    • Fix Version/s: 1.1.8
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.1.8
    • CPU:
      x86
    • OS:
      generic
    • Verification:
      Verified

      Description

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

        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: