Currency encoding issue when upgrading from Gradle 2.0 to 2.1

Hi,

I’ve been having an issue with the following code when changing from Gradle 2.0 to higher. I have tied it down to changing from 2.0 to 2.1.

public static formatDoubleForCurrency(Double d, int maxFractions) {
NumberFormat formatter = NumberFormat.getCurrencyInstance();
formatter.setMaximumFractionDigits(maxFractions);
return formatter.format(number);
}

When running the following unit test on our CI server that runs on Solaris 10, we see different output:

Locale defaultLocale = Locale.getDefault();
System.out.println(defaultLocale.getDisplayName());
System.out.println("Default Charset=" + Charset.defaultCharset());
System.out.println("currency: "+NumberUtils.formatDoubleForCurrency(10000D, 0));

For Gradle 2.0 we see: English Default Charset=ISO-8859-1 currency: £10,000

For Gradle 2.1 we see: English Default Charset=ISO-8859-1 currency: ¤10,000

Were there any changes made in 2.1 that may explain this behaviour? I have not found any similar issues reported and at the moment I’m not sure where to start looking.

Thanks for any help you can give.

cheers

Stuart