From owner-freebsd-java@FreeBSD.ORG Thu Jan 14 15:59:23 2010 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 63E291065692 for ; Thu, 14 Jan 2010 15:59:23 +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 EA08A8FC18 for ; Thu, 14 Jan 2010 15:59:22 +0000 (UTC) Received: from [212.123.145.58] (helo=sjakie.klop.ws) by smtp-out1.tiscali.nl with esmtp (Exim) (envelope-from ) id 1NVS6T-0001cD-LM for freebsd-java@freebsd.org; Thu, 14 Jan 2010 16:59:21 +0100 Received: from 212-123-145-58.ip.telfort.nl (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id 6C6F3ED84 for ; Thu, 14 Jan 2010 16:59:18 +0100 (CET) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: "freebsd-java@freebsd.org" References: <21097791.14281242121898393.JavaMail.tomcat@localhost> Date: Thu, 14 Jan 2010 16:59:18 +0100 MIME-Version: 1.0 From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/10.10 (FreeBSD) Content-Transfer-Encoding: quoted-printable Subject: Re: Fwd: openjdk6 error in Locale (solved in new -b17) 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, 14 Jan 2010 15:59:23 -0000 On Fri, 22 May 2009 14:01:35 +0200, Ronald Klop =20 wrote: > On Sun, 17 May 2009 14:41:01 +0200, Ronald Klop =20 > wrote: > >> Hi, >> >> I sent this to the maintainer of the openjdk6 port, but thought it wou= ld >> be good to share it with you to? >> >> If I run the attached programm with port java/openjdk6 (b14 and b16) I= =20 >> get >> this output. >> displayname: Dutch >> decimal: . >> grouping: , >> dateformat: AD >> displayname: Dutch (Netherlands) >> decimal: . >> grouping: , >> dateformat: AD >> >> If I run it with port java/jdk16 I get. >> displayname: Dutch >> decimal: , >> grouping: . >> dateformat: AD >> displayname: Dutch (Netherlands) >> decimal: , >> grouping: . >> dateformat: AD >> >> As you see the 'decimal' and 'grouping' are reverted. The last output = is >> correct for The Netherlands. >> This is all on 7.2-STABLE/amd64. >> >> Can you reproduce the problem? And does anybody know how can I fix it? >> >> Cheers, >> >> Ronald. > > Hi, > > This happens for the French and German locale's also. I'm looking at =20 > differences in jdk16 and openjdk6, bug can't find it yet. > I would be very happy if I knew if people could reproduce this? > > public static void main(String[] args) { > for (Locale l : new Locale[] { new Locale("nl"), new Locale("nl", =20 > "NL") }) { > System.out.println("displayname: " + l.getDisplayName()); > DecimalFormat nf =3D (DecimalFormat)NumberFormat.getNumberInstance(l= ); > final DecimalFormatSymbols decimalFormatSymbols =3D =20 > nf.getDecimalFormatSymbols(); > System.out.println("decimal: " + =20 > decimalFormatSymbols.getDecimalSeparator()); > System.out.println("grouping: " + =20 > decimalFormatSymbols.getGroupingSeparator()); > } > } > > Ronald. The new openjdk6-b17 solves this for me. Ronald.