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 Sun, 19 Feb 2017 19:43:44 GMT

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

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

Github user coveralls commented on the issue:

    https://github.com/apache/commons-lang/pull/239
  
    
    [![Coverage Status](https://coveralls.io/builds/10226324/badge)](https://coveralls.io/builds/10226324)
    
    Coverage increased (+0.02%) to 94.549% when pulling **ce3e3e03e4d561dfae565186b431a879a9afa920
on PascalSchumacher:lang_1312_area_code** into **954ade4c1ae2adc0aaac3a1dbe800495c519520c
on apache:master**.



> 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"));
> {java}
> 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"));
> {java}



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

Mime
View raw message