From owner-freebsd-java@FreeBSD.ORG Wed Jan 30 08:14:26 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 ACFDA16A419 for ; Wed, 30 Jan 2008 08:14:26 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 6692113C447 for ; Wed, 30 Jan 2008 08:14:26 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id m0TFwBpc091991; Tue, 29 Jan 2008 10:58:11 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-java@FreeBSD.org Date: Tue, 29 Jan 2008 10:58:07 -0500 User-Agent: KMail/1.6.2 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200801291058.09857.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.92/5598/Tue Jan 29 09:28:04 2008 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Pieter de Goeje , Ronald Klop 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: Wed, 30 Jan 2008 08:14:26 -0000 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