Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8043554

JEP 252: Use CLDR Locale Data by Default

    Details

    • Author:
      Naoto Sato
    • JEP Type:
      Feature
    • Exposure:
      Open
    • Subcomponent:
    • Scope:
      SE
    • Discussion:
      i18n dash dev at openjdk dot java dot net
    • Effort:
      M
    • Duration:
      M
    • Alert Status:
       Green
    • JEP Number:
      252

      Description

      Summary

      Use locale data from the Unicode Consortium's Common Locale Data Repository (CLDR) by default.

      Motivation

      The Unicode Consortium's Common Locale Data Repository is the de-facto standard for locale data on many platforms. Although CLDR locale data is bundled with the JRE as of JDK 8, it is not enabled by default. To turn it on, the end user must explicitly set the system property java.locale.providers, e.g.:

      java.locale.providers=JRE,CLDR

      By enabling the use of CLDR data by default, de-facto standard locale data will be provided to users without any further action on their part.

      Description

      Insert CLDR at the front of the default implicit LocaleProviderAdapter preference list.

      The default lookup order will be CLDR, COMPAT, SPI, where COMPAT designates the JRE's locale data in JDK9. If a particular provider cannot offer the requested locale data, the search will proceed to the next provider in order. Localized patterns for the formatting and translation of display strings, such as the locale name, may be different in some locales. To enable behavior compatible with JDK 8, set the system property java.locale.providers to a value with COMPAT ahead of CLDR.

      Testing

      Locale-sensitive services such as date, time, and number formatting may behave differently for locales not supported in JDK 8. Existing tests and applications will need to be modified.

      Risks and Assumptions

      We cannot be responsible for the validity of the data coming from CLDR; we assume that it is "good data".

        Issue Links

        1.
        [DEV] Define scoping Sub-task Resolved Naoto Sato    
         
        2.
        [DEV] Design Tasks Sub-task Resolved Naoto Sato   2014-11-15
         
        3.
        [DEV] Development Tasks Sub-task Resolved Naoto Sato   2015-06-30
         
        4.
        [DEV] Stabilization and Tuning Sub-task Resolved Naoto Sato   2015-07-31
         
        5.
        Test task: Develop new Global Suite tests Sub-task Closed Yong Huang

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 24 weeks
        2015-07-24
         

          Activity

          Hide
          iris Iris Clark added a comment -
          Move "[cldr]" reference from the end to the summary section so that it is contained within the extracted summary text.
          Show
          iris Iris Clark added a comment - Move "[cldr]" reference from the end to the summary section so that it is contained within the extracted summary text.

            People

            • Assignee:
              naoto Naoto Sato
              Reporter:
              naoto Naoto Sato
              Owner:
              Naoto Sato
              Reviewed By:
              Brian Goetz
              Endorsed By:
              Brian Goetz
            • Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:
                Integration Due: