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

Apps launched via double-clicked .jars have file.encoding value of US-ASCII on Mac OS X

    XMLWordPrintable

    Details

      Backports

        Description

        JDK-8003228 fixed a problem on OS X with filenames containing non-ASCII characters. For instance, such files would not show up in file chooser dialogs under certain circumstances (launching via webstart or double-clicked .jars, or from the Terminal with LANG=C). Post-8003228, the sun.jnu.encoding property is always set to UTF-8 on Mac OS X.

        The problem remains that once the file is loaded, non-ASCII characters *contained* in files do not display correctly. This is due to the "file.encoding" property being set to US-ASCII for apps launched by double-clicking a .jar file.

          Attachments

          1. NonAscii_.txt
            0.0 kB
          2. NonAscii_ü.txt
            0.0 kB
          3. NotepadProj.zip
            44 kB

            Issue Links

              Activity

                People

                Assignee:
                bchristi Brent Christian
                Reporter:
                bchristi Brent Christian
                Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: