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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.1fcs
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Description

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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: