[jboss-jira] [JBoss JIRA] (WFLY-4228) Fallback locale should be ROOT, and not Locale.getDefault()
Romain Pelisse (JIRA)
issues at jboss.org
Wed Jan 7 10:53:30 EST 2015
[ https://issues.jboss.org/browse/WFLY-4228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13030586#comment-13030586 ]
Romain Pelisse commented on WFLY-4228:
--------------------------------------
This issue was reported while investigating WFLY-3723, as it appeared as potential fix for it.
> Fallback locale should be ROOT, and not Locale.getDefault()
> -----------------------------------------------------------
>
> Key: WFLY-4228
> URL: https://issues.jboss.org/browse/WFLY-4228
> Project: WildFly
> Issue Type: Enhancement
> Components: CLI, ConfigAdmin
> Affects Versions: 9.0.0.Alpha1
> Environment: Any system with default locale set to something diffirent from english
> Reporter: Romain Pelisse
> Assignee: Romain Pelisse
> Priority: Minor
>
> While investigating WFLY-3723, I found out that when a bundle for a specified locale can not be found, Wildfly code fallbacks to Locale.getDefault, rather than use the Locale.ROOT. This is a side effect on non-english system, because there is no bundle for "en_US", and root should be used in this case.
> I proposed to fix it by replacing all relevant occurences of Locale.getDefault() by Locale.ROOT.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the jboss-jira
mailing list