From owner-freebsd-java@FreeBSD.ORG Tue Jan 29 17:54:03 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 8687216A420 for ; Tue, 29 Jan 2008 17:54:03 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from de-01.itac.at (de-01.itac.at [213.155.82.138]) by mx1.freebsd.org (Postfix) with ESMTP id 0E4A513C43E for ; Tue, 29 Jan 2008 17:54:02 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from localhost ([127.0.0.1] helo=webmail.itac.at) by de-01.itac.at with esmtp (Exim 4.52) id 1JJueb-00011M-2a; Tue, 29 Jan 2008 18:53:49 +0100 Received: from 83.64.253.201 (proxying for unknown) (SquirrelMail authenticated user decke@bluelife.at) by webmail.itac.at with HTTP; Tue, 29 Jan 2008 18:53:49 +0100 (CET) Message-ID: <40140.83.64.253.201.1201629229.squirrel@webmail.itac.at> In-Reply-To: References: Date: Tue, 29 Jan 2008 18:53:49 +0100 (CET) From: "Bernhard Froehlich" To: freebsd-java@freebsd.org User-Agent: SquirrelMail/1.4.9a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: Ronald Klop Subject: 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: Tue, 29 Jan 2008 17:54:03 -0000 > 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. > > Greetings, > > Ronald. > > -- > Ronald Klop > Amsterdam, The Netherlands 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=119397