You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2013/09/16 09:37:52 UTC

[jira] [Resolved] (CAMEL-6754) UnitUtilsTest cant manage a locale different from US

     [ https://issues.apache.org/jira/browse/CAMEL-6754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-6754.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.12.1
                   2.11.2

Applied the path into master, camel-2.12.x and camel-2.11.x branches with thanks to Alessandro.
                
> UnitUtilsTest cant manage a locale different from US
> ----------------------------------------------------
>
>                 Key: CAMEL-6754
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6754
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.12.0
>         Environment: Fedora release 18 (Spherical Cow) 64 bit, Italian locale
>            Reporter: Alessandro Rontani
>            Assignee: Willem Jiang
>            Priority: Minor
>              Labels: patch, test
>             Fix For: 2.11.2, 2.12.1, 2.13.0
>
>         Attachments: locale_patch.patch
>
>
> When locale is set to a language different from english (for example italian), the unit test in org.apache.camel.util.UnitUtilsTest fail, because in the italian locale the decimal separator is the comma, not the dot.
> The test compare the results of printUnitFromBytes to static strings formatted with the dot, and in an italian locale fails because it espects "1.0" and get instead "1,0".
> I have patched the test code to make it works in every locale (building the expected results with the current locale decimal separator), and i have attached the patch to this issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira