[
https://issues.apache.org/jira/browse/LANG-915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergio Fernández updated LANG-915:
----------------------------------
Attachment: LANG-915-test.patch
Sure. Please, find attached a patch for the test suite that arises the issue.
Later I'd try to provide a patch for the issue itself, since a quick look is
not enough because the current code implements a very cryptic algorithm with
too many magic numbers in it
> Wrong locale handling in LocaleUtils.toLocale()
> -----------------------------------------------
>
> Key: LANG-915
> URL: https://issues.apache.org/jira/browse/LANG-915
> Project: Commons Lang
> Issue Type: Bug
> Affects Versions: 3.1
> Reporter: Sergio Fernández
> Priority: Minor
> Fix For: Patch Needed
>
> Attachments: LANG-915-test.patch
>
>
> The static method LocaleUtils.toLocale() fails, at least, to parse 3-char
> locale strings, which are completelly valid BCP47 locales.
--
This message was sent by Atlassian JIRA
(v6.1#6144)