From owner-freebsd-java@FreeBSD.ORG Thu Jan 31 00:49:37 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66B3F16A418 for ; Thu, 31 Jan 2008 00:49:37 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out1.tiscali.nl (smtp-out1.tiscali.nl [195.241.79.176]) by mx1.freebsd.org (Postfix) with ESMTP id 2C22313C461 for ; Thu, 31 Jan 2008 00:49:37 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from [212.123.145.58] (helo=guido.klop.ws) by smtp-out1.tiscali.nl with smtp (Tiscali http://www.tiscali.nl) id 1JKNcV-00083r-NR for ; Thu, 31 Jan 2008 01:49:35 +0100 Received: (qmail 4616 invoked from network); 31 Jan 2008 00:49:34 -0000 Received: from localhost (HELO guido.klop.ws) (127.0.0.1) by localhost with SMTP; 31 Jan 2008 00:49:34 -0000 To: "Jung-uk Kim" , freebsd-java@freebsd.org From: "Ronald Klop" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <200801291058.09857.jkim@FreeBSD.org> Content-Transfer-Encoding: Quoted-Printable Date: Thu, 31 Jan 2008 01:49:33 +0100 Message-ID: In-Reply-To: <200801291058.09857.jkim@FreeBSD.org> User-Agent: Opera Mail/9.25 (FreeBSD) Cc: Pieter de Goeje Subject: Re: Locale issue java 6 (not in java 5) X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2008 00:49:37 -0000 On Tue, 29 Jan 2008 16:58:07 +0100, 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 =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. > > Can you try the patch in the PR? > > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D119397 > > Jung-uk Kim > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org= " I tried it. It fixes my problem. See another mail in this thread. Ronald. -- = Ronald Klop Amsterdam, The Netherlands