camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-6754) UnitUtilsTest cant manage a locale different from US
Date Mon, 16 Sep 2013 07:37:52 GMT

     [ 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

Mime
View raw message