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

Mac: FileChooser.showOpenDialog() + JDK7 + MacOS produces an invalid File instance if filename contains accent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • 8
    • 7u6
    • javafx

      To reproduce:
      - unzip the attached NB project (TestFileChooser.zip)
      - setup FX JAR and *choose JDK7 platform* (create one if needed)
      - run
          -> a sample app shows up (see TestFileChooser.png)
      - click on Choose File button
          -> a FileChooser window pops up
      - choose the "Vacances à Sydney.txt" file near TestFileChooser.java
          -> File.getAbsolutePath() and File.toURI() are displayed and look correct
          -> however File.exists() returns false
          -> see TestFileChooser2.png

      With MacOS + JDK6, the issue does not occur.

        1. TestFileChooser2.png
          37 kB
          Eric Le Ponner
        2. TestFileChooser.png
          24 kB
          Eric Le Ponner
        3. runFromNetBeans.png
          29 kB
          Yves Joan
        4. runFromCommandLine.png
          28 kB
          Yves Joan

            anthony Anthony Petrov (Inactive)
            eleponn Eric Le Ponner
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: