On Fri, 2007-03-23 at 15:24 -0500, Michael Baehr wrote:
I was able to overcome the problem with setting the JAVA_OPTS
environment variable in Windows to
JAVA_OPTS=-Dfile.encoding=UTF-8
At least on the command line it works for me now.
Setting it as an option for the Eclipse launcher also solves the problem
inside Eclipse!
I can confirm that (now I have "downgraded" the groovy shell script so
it actually works of Solaris 10) your test program works fine on Solaris
and Ubuntu and fails on Mac OS X. I have exactly the same environment
variables set for Ubuntu and Mac OS X but slightly different for Solaris
as Sun refuse to accept the Brits will ever use UTF-8.
On Mac OS X I have JDK 1.5 and on Ubuntu I have JDK 1.6 so it could be a
JDK issue. Does anyone know when Apple will release their JDK 1.6?
You fix works fine on Mac OS X so it is not a Windows specific thing.
Neither is it a Groovy thing per se since I am using exactly the same
Groovy installation on Solaris, Mac OS X and Ubuntu -- same files in
fact.
It looks like we need to add the JAVA_OPTS stuff to the other shell
scripts as well as groovy.