Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1172

LocaleUtils.toLocale does not handle extensions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3
    • 3.13.0
    • None
    • None

    Description

      The toLocale() method is unable to handle locale strings that have custom extensions that are completely valid according to the BCP47 spec. Oracle documentation for sub tag extensions can be found here.

      An example locale string with a custom extension might be fr-CA-x-nb.

      This issue seems to have been introduced with ticket LANG-915.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              djbuhler David Buhler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3.5h
                  3.5h