Date: Wed, 30 Jan 2008 04:47:47 +0100 From: Pieter de Goeje <pieter@degoeje.nl> To: Jung-uk Kim <jkim@freebsd.org> Cc: Ronald Klop <ronald-freebsd8@klop.yi.org>, freebsd-java@freebsd.org Subject: Re: Locale issue java 6 (not in java 5) Message-ID: <200801300447.48468.pieter@degoeje.nl> In-Reply-To: <200801291058.09857.jkim@FreeBSD.org> References: <op.t5o1dll78527sy@guido.klop.ws> <200801291058.09857.jkim@FreeBSD.org>
index | next in thread | previous in thread | raw e-mail
On Tuesday 29 January 2008, Jung-uk Kim wrote:
> On Tuesday 29 January 2008 08:35 am, Ronald Klop 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 = 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.
>
> Can you try the patch in the PR?
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=119397
>
> Jung-uk Kim
Yes, that fixes the issue. Funny thing though, I had to recompile the test
program for it to work.
--
Pieter de Goeje
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801300447.48468.pieter>
