Sebb created LANG-826:
-------------------------

             Summary: FastDateParser does not handle non-ASCII digits correctly
                 Key: LANG-826
                 URL: https://issues.apache.org/jira/browse/LANG-826
             Project: Commons Lang
          Issue Type: Bug
          Components: lang.time.*
    Affects Versions: 3.1
            Reporter: Sebb


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to