JDK 1.7.0_25: apps launched via double click .app with incorrect file.encoding=US-ASCII

Brent Christian brent.christian at oracle.com
Fri Aug 2 16:59:43 PDT 2013


Hi, Fabrizio

On 7/31/13 6:03 AM, Fabrizio Giudici wrote:
> This sounds to be a similar issue to "Java 8 RFR 8011194: Apps launched
> via double-clicked .jars have file.encoding value of US-ASCII on Mac OS
> X": that discussion actually helped me in sorting out the problem.
>
> In short, I have a Mac OS X .app which is created with an embedded JRE.
> When launched by means of "open .../App.app" by terminal all is fine. I
> suppose this happens because I have in my termnal env:
>
> LC_ALL=en_US.UTF-8
> LANG=en_US.UTF-8
>
> When launched by double-clicking on the icon, the file.encoding is set
> to US-ASCII and problems happen.

Yes, this is almost certainly the same problem as 8011194.

> How should I quickly fix the problem? Setting file.encoding and
> sun.jnu.encoding to UTF-8 in the Info.plist?

I think that's a good plan, yes.

-Brent



More information about the macosx-port-dev mailing list