JEP draft: Unicode Locale Extension (BCP 47 'U' Extension) enhancements

OwnerNaoto Sato
Created2017/03/24 23:19
Updated2017/10/10 22:22
TypeFeature
StatusSubmitted
Componentcore-libs / java.util:i18n
ScopeSE
Priority2
Reviewed byAlan Bateman
Issue8177568

Summary

Upgrade the support for the Unicode locale extension (BCP47 'U' extension) in the JDK.

Goals

The support for BCP 47 conformance has been added in JDK 7, with limited support for the Unicode locale extension, namely calendar and numbers. This JEP intends to extend the support for the U extensions to the latest LDML specification in relevant JDK classes.

Non-Goals

Although the localized display names will be provided, specifying the U extensions other than the ones described in "Description" section in locale sensitive APIs has no effect.

Description

As of JDK 9, supported BCP 47 U extensions are "ca" and "nu". This JEP intends to add the support for the following U extensions.

In order to support those additional Unicode locale extensions, changes will be made in the following JDK classes:

Risks and Assumptions

The display names returned from Locale.getDisplayName() depends on the localized data provided by each locale provider.