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

FastDateParser does not handle non-ASCII digits correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1
    • 3.2
    • lang.time.*
    • None

    Description

      The FastDateParser class assumes that all numbers are ascii digits.

      However, that is not the case for some locales such as
      ja_JP_JP, hi_IN, th_TH, and th_TH_TH

      Rather than using "\d", the code needs to match using "\p

      {IsNd}

      " which is the Unicode class for numeric digits.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: