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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 7u6
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:

      Description

      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.

        Attachments

        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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: