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

Gary D. Gregory commented on LANG-1172:
---------------------------------------

Hi [~rolandkreuzer] 

Your approach sounds reasonable. I think we'll need to see it in a PR to 
understand any possible side-effects, tests, and so on.

TY!

> LocaleUtils.toLocale does not handle extensions
> -----------------------------------------------
>
>                 Key: LANG-1172
>                 URL: https://issues.apache.org/jira/browse/LANG-1172
>             Project: Commons Lang
>          Issue Type: Bug
>    Affects Versions: 3.3
>            Reporter: David Buhler
>            Priority: Major
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> The {{toLocale()}} method is unable to handle locale strings that have custom 
> extensions that are completely valid according to the [BCP47 
> spec|https://tools.ietf.org/html/bcp47#section-4]. Oracle documentation for 
> sub tag extensions can be [found 
> here|https://docs.oracle.com/javase/tutorial/i18n/locale/extensions.html].
> An example locale string with a custom extension might be {{fr-CA-x-nb}}.
> This issue seems to have been introduced with ticket LANG-915.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to