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

Wrong locale handling in LocaleUtils.toLocale()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1
    • 3.3
    • None
    • None

    Description

      The static method LocaleUtils.toLocale() fails, at least, to parse 3-char locale strings, which are completelly valid BCP47 locales.

      Attachments

        1. LANG-915.patch
          6 kB
          Sergio Fernández
        2. LANG-915-test.patch
          1 kB
          Sergio Fernández

        Issue Links

          Activity

            People

              britter Benedikt Ritter
              wikier Sergio Fernández
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: