classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] [Patch] java.util.Locale and generated list of supported lo


From: Michael Koch
Subject: [cp-patches] [Patch] java.util.Locale and generated list of supported locales
Date: Sun, 19 Dec 2004 20:15:50 +0100
User-agent: Mutt/1.5.6+20040907i

Hi list,


I just commited the attached patch to implement
java.util.Locale.getAvailableLocales() and to make sure all locales
included in GNU classpath are supported. I add a little script that
generates a little helper class each time GNU classpath ist built to let
it know what locales are supported.


Michael


2004-12-19  Michael Koch  <address@hidden>

        * java/util/Locale.java: Make sure all locales get only created once.
        (availableLocales): New static field.
        (localeMap): Likewise.
        (getLocale): New private static method.
        (getAvailableLocales): Re-implemented.
        (getISOCountries): Fixed typo in javadoc.
        (getDisplayLanguage): Load iso639.properties from correct package.
        (getDisplayCountry): Load iso3166.properties from correct package.
        * scripts/generate-locale-list.sh: New script.
        * lib/Makefile.am: Call scripts/generate-locale-list.sh to generate
        java/util/LocaleData.java.

Attachment: locales.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]