commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LANG-826) FastDateParser does not handle non-ASCII digits correctly
Date Tue, 25 Sep 2012 01:04:10 GMT
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

Mime
View raw message