[
https://issues.apache.org/jira/browse/LANG-826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sebb resolved LANG-826.
-----------------------
Resolution: Fixed
Fix Version/s: 3.2
URL: http://svn.apache.org/viewvc?rev=1389673&view=rev
Log:
LANG-826 FastDateParser does not handle non-ASCII digits correctly
Modified:
commons/proper/lang/trunk/src/changes/changes.xml
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
> 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
> Fix For: 3.2
>
>
> 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