file.encoding vs. sun.jnu.encoding(?) on OS X

Paul Taylor paul_t100 at fastmail.fm
Fri Nov 23 02:29:38 PST 2012


On 23/11/2012 09:45, Alan Bateman wrote:
> On 22/11/2012 22:28, Paul Taylor wrote:
>> :
>>
>> But confused, I think 7130915 is the problem I'm having however it 
>> isn't fixed in the latest version of 7u12 (build 2) according to my 
>> testing.
>> Maybe it is fixed in a as yet unreleased build of 7u12, unfortunately 
>> I was looking to do a release within a couple of weeks assuming so 
>> may have to ship with 7u10 (looks like should be released about then) 
>> is there a workaround
> Yes, it's there:
>
> http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/rev/03b9d0ba2488
>
> and so in 7u12-b01 (and b02 of course).
>
> There are hundreds of fixes in b01, I'm not sure why they aren't 
> listed here:
>
> http://download.java.net/jdk7u12/changes/jdk7u12-b01.html
>
>
>> I can use in the meantime, does this sun.jnu.encoding workaround fix 
>> this issue, I'm using appbundler rather than webstart so I assume I 
>> can use this if it works.
> I'll have to defer this one to Scott as I don't know whether there is 
> a work around for appbundler or webstart. For standalone apps then you 
> can set the appropriate locale.
>>
>> I cannot even find 8003228 in the bug tracker.
> I just checked and it turns out to be just bad timing (some 
> maintenance going on at bugs.sun.com at the moment, should be up to 
> date later today).
>
> -Alan.
>
Alan

Thanks for taking the time, as I'm using appbundler I can configure it 
so gets added to Info.plist, and Info.plist ends up with

<key>JVMOptions</key>
<array>
<string>-Dsun.jnu.encoding=UTF8</string></array>

but I wasnt clear if the encoding thing fixed the problem.

Testing has been confusing as b12-b02 didn't appear to be working but 
then I realized I was checking a file over the network from a nas , if I 
loaded same file from local drive then it did work.
But then I tried rebuilding my app using b10 and rerunning and had same 
results, working localy but not on network.

So Im unclear whether the b12 fix should have fixed issues for file on 
nas, or if that is another issue (that may exist for Java 6)  or only 
local filesystem, and if it is just for local fs why it was still 
working with b10 whihc doesnt have the fix.

Sorry this is so garbled.

Paul






More information about the macosx-port-dev mailing list