Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jan 2008 01:01:18 +0100
From:      "Ronald Klop" <ronald-freebsd8@klop.yi.org>
To:        "Bernhard Froehlich" <decke@bluelife.at>, freebsd-java@freebsd.org
Subject:   Re: Locale issue java 6 (not in java 5)
Message-ID:  <op.t5pucgz08527sy@guido.klop.ws>
In-Reply-To: <40140.83.64.253.201.1201629229.squirrel@webmail.itac.at>
References:  <op.t5o1dll78527sy@guido.klop.ws> <40140.83.64.253.201.1201629229.squirrel@webmail.itac.at>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 29 Jan 2008 18:53:49 +0100, Bernhard Froehlich <decke@bluelife.a=
t>  =

wrote:

>> Hi,
>>
>> I have this little program.
>>
>> import java.text.NumberFormat;
>> import java.text.ParseException;
>> import java.util.Locale;
>>
>> final class LocaleCheck {
>> 	public static void main(String[] args) throws ParseException {
>> 		NumberFormat f =3D NumberFormat.getNumberInstance(new Locale("NL"))=
;
>> 		System.out.println(f.parse("1,07"));
>> 	}
>> }
>>
>> /usr/local/jdk1.5.0/bin/java LocaleCheck
>> 1.07
>>
>> /usr/local/jdk1.6.0/bin/java LocaleCheck
>> 107
>>
>> Java 5 gives the correct output.
>>
>> Running on FreeBSD 7.0 from 11 Jan 2008.
>>
>> java version "1.5.0_13-p7"
>> Java(TM) 2 Runtime Environment, Standard Edition (build
>> 1.5.0_13-p7-root_07_jan_2008_13_37)
>> Java HotSpot(TM) Client VM (build 1.5.0_13-p7-root_07_jan_2008_13_37,=

>> mixed mode)
>>
>> java version "1.6.0_03-p3"
>> Java(TM) SE Runtime Environment (build
>> 1.6.0_03-p3-root_26_nov_2007_14_37-b00)
>> Java HotSpot(TM) Client VM (build  =

>> 1.6.0_03-p3-root_26_nov_2007_14_37-b00,
>> mixed mode)
>>
>> Do people see the same output? Should I file a PR?
>> I don't have the problem on Linux with java 1.5.0_10 and 1.6.0_03.
>>
>> Greetings,
>>
>> Ronald.
>
> I had the same problem. Maybe the attached patch (which is more like a=

> workaround) can help you. Simply put it in
> /usr/ports/java/jdk16/files/patch-localegen.sh and give it a try.
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=3D119397

Your patch works for me. Thanks!

Ronald.

-- =

  Ronald Klop
  Amsterdam, The Netherlands



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.t5pucgz08527sy>