From owner-freebsd-java@FreeBSD.ORG Sat Dec 29 23:47:28 2007
Return-Path: <owner-freebsd-java@FreeBSD.ORG>
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 AB89A16A418
for <freebsd-java@freebsd.org>; Sat, 29 Dec 2007 23:47:28 +0000 (UTC)
(envelope-from freebsd@spatula.net)
Received: from turing.morons.org (turing.morons.org [208.96.51.42])
by mx1.freebsd.org (Postfix) with ESMTP id 9525213C43E
for <freebsd-java@freebsd.org>; Sat, 29 Dec 2007 23:47:28 +0000 (UTC)
(envelope-from freebsd@spatula.net)
Received: from localhost (localhost.morons.org [127.0.0.1])
by turing.morons.org (Postfix) with ESMTP id 5FA431711A;
Sat, 29 Dec 2007 15:47:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at morons.org
Received: from turing.morons.org ([127.0.0.1])
by localhost (turing.morons.org [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id EDXx5Epi6KJr; Sat, 29 Dec 2007 15:47:25 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(No client certificate requested)
by turing.morons.org (Postfix) with ESMTP;
Sat, 29 Dec 2007 15:47:25 -0800 (PST)
Date: Sat, 29 Dec 2007 15:47:25 -0800 (PST)
From: Nick Johnson <freebsd@spatula.net>
X-X-Sender: spatula@turing
To: Bernhard Froehlich <decke@bluelife.at>
In-Reply-To: <58395.85.90.150.9.1198965623.squirrel@webmail.itac.at>
Message-ID: <20071229154442.W9106@turing>
References: <58395.85.90.150.9.1198965623.squirrel@webmail.itac.at>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Cc: freebsd-java@freebsd.org
Subject: Re: Wrong locales in JDK 1.6 (patchset 3)
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 29 Dec 2007 23:47:28 -0000
I get the same output as you with my build of JDK 1.6 p3. I get the
expected output with similar code on my Windows box. I also get the
expected result if I remove references to sun.util.LocaleDataMetaInfo and
compile and run it with my old JDK 1.5... so it looks like a flaw in the
1.6p3 build.
Nick
On Sat, 29 Dec 2007, Bernhard Froehlich wrote:
> Hi,
>
> I've run into a problem with localization in jdk1.6 (patchset 3) at least on
> FreeBSD 6.2/AMD64 and 7.0/AMD64. With jdk 1.6 Locale.getAvailableLocales()
> returns only 3 locales: "ben", "arn", "sun/text/resources/".
>
> Yeah that looks buggy so i started so search and found that
> sun.util.LocaleDataMetaInfo.getSupportedLocaleString("sun.text.resources.FormatData")
> returns " ben sun/text/resources/ | arn sun/text/resources/ " which is a
> formatted string with all available locales that were hardcoded/replaced at
> build time so the cause is somewhere in the build scripts.
>
> That string is build by j2se/make/java/java/localegen.sh and genlocales.gmk
> but i haven't yet found the bug itself.
>
>
> Can anyone confirm that this is a bug?
--
"Courage isn't just a matter of not being frightened, you know. It's being
afraid and doing what you have to do anyway."
Doctor Who - Planet of the Daleks
This message has been brought to you by Nick Johnson 2.3b1 and the number 6.
http://healerNick.com/ http://morons.org/ http://spatula.net/