JDK 1.7.0_25: apps launched via double click .app with incorrect file.encoding=US-ASCII
Fabrizio Giudici
Fabrizio.Giudici at tidalwave.it
Fri Aug 2 23:48:20 PDT 2013
On Sat, 03 Aug 2013 01:59:43 +0200, Brent Christian
<brent.christian at oracle.com> wrote:
> 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.
It works. 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