camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <>
Subject [jira] [Assigned] (CAMEL-6754) UnitUtilsTest cant manage a locale different from US
Date Mon, 16 Sep 2013 02:43:52 GMT


Willem Jiang reassigned CAMEL-6754:

    Assignee: Willem Jiang
> UnitUtilsTest cant manage a locale different from US
> ----------------------------------------------------
>                 Key: CAMEL-6754
>                 URL:
>             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.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

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:

View raw message