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

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P3
    • 8
    • Affects Version/s: 7u6
    • Component/s: 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. runFromCommandLine.png
          runFromCommandLine.png
          28 kB
        2. runFromNetBeans.png
          runFromNetBeans.png
          29 kB
        3. TestFileChooser.png
          TestFileChooser.png
          24 kB
        4. TestFileChooser.zip
          16 kB
        5. TestFileChooser2.png
          TestFileChooser2.png
          37 kB

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

              Created:
              Updated:
              Resolved:
              Imported: