commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1312) LocaleUtils#toLocale does not support language followed by UN M.49 numeric-3 area code
Date Mon, 20 Feb 2017 08:00:51 GMT

    [ https://issues.apache.org/jira/browse/LANG-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15874168#comment-15874168
] 

ASF GitHub Bot commented on LANG-1312:
--------------------------------------

Github user PascalSchumacher commented on the issue:

    https://github.com/apache/commons-lang/pull/239
  
    @kinow: Thanks for the review. :-)
    
    I also did not know about UN M.49 till yesterday. I just stumbled over this while analyzing
commons-lang test failures on java 9 for https://issues.apache.org/jira/browse/LANG-1265


> LocaleUtils#toLocale does not support language followed by UN M.49 numeric-3 area code
> --------------------------------------------------------------------------------------
>
>                 Key: LANG-1312
>                 URL: https://issues.apache.org/jira/browse/LANG-1312
>             Project: Commons Lang
>          Issue Type: Bug
>    Affects Versions: 3.5
>            Reporter: Pascal Schumacher
>            Priority: Minor
>
> These all work:
> {code:java}
> System.out.println(new Locale("en", "001"));
> System.out.println(new Locale("en", "150"));
> System.out.println(new Locale("ar", "001"));
> {code}
> but these all fail with an IllegalArgumentException:
> {code:java}
> System.out.println(LocaleUtils.toLocale("en_001"));
> System.out.println(LocaleUtils.toLocale("en_150"));
> System.out.println(LocaleUtils.toLocale("ar_001"));
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message