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

FileDialog.setDirectory() doesn't work with a directory name in Han characters

XMLWordPrintable

    • 1.1fcs
    • generic
    • generic
    • Not verified

      masayoshi.okutsu@Eng 1996-12-19
      FileDialog.setDirectory() doesn't work with a directory name in Han
      characters on Japanese Solaris and Japanese Win95.

      You can reproduce the bug with the following program.

      import java.awt.*;

      public class fd {
        public static void main(String args[]) {
          Frame g = new Frame("");
          FileDialog f = new FileDialog(g, "\u732b", FileDialog.LOAD);
          f.setDirectory("\u732b");
          f.pack();
          f.show();
          f.dispose();
        }
      }

      and suppose the current directory contains "\u732b" directory.

      If you run this code, it beeps twice, and FileDialog can't set its
      directory to "\u732b".

            nishimur Naoyuki Ishimura (Inactive)
            okutsu Masayoshi Okutsu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: