JDK 1.7.0_25: apps launched via double click .app with incorrect file.encoding=US-ASCII
Fabrizio Giudici
Fabrizio.Giudici at tidalwave.it
Wed Jul 31 06:03:58 PDT 2013
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. This happens with JDK 1.7.0_25. I can
provide more info and code if needed.
Is it a problem with JDK 1.7.0_25? With my Info.plist? Or something else?
How should I quickly fix the problem? Setting file.encoding and
sun.jnu.encoding to UTF-8 in the Info.plist?
Thanks.
--
Fabrizio Giudici - Java Architect @ Tidalwave s.a.s.
"We make Java work. Everywhere."
http://tidalwave.it/fabrizio/blog - fabrizio.giudici at tidalwave.it
More information about the macosx-port-dev
mailing list