You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by "Axel Howind (Jira)" <ji...@apache.org> on 2022/05/11 11:46:00 UTC
[jira] [Commented] (XMLBEANS-606) XMLError don't respect default Locale for number formatting
[ https://issues.apache.org/jira/browse/XMLBEANS-606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17534839#comment-17534839 ]
Axel Howind commented on XMLBEANS-606:
--------------------------------------
Can you provide an example of a badly formatted error message? I think it is correct to use Locale.ROOT in getMessage(); for localized messages there is getLocalizedMessage().
> XMLError don't respect default Locale for number formatting
> -----------------------------------------------------------
>
> Key: XMLBEANS-606
> URL: https://issues.apache.org/jira/browse/XMLBEANS-606
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 5.0.3
> Reporter: Yanick Vuille
> Priority: Major
>
> The class XMLError uses `Locale.ROOT` to format messages instead of using `Locale.getDefault()`.
> This results in badly formatted error messages. The separators are not necessarily the right ones depending on the locale.
> Version 3 took into account the default locale, since version 4 the locale is forced to 'Locale.ROOT'
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org