camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alessandro Rontani (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-6754) UnitUtilsTest cant manage a locale different from US
Date Sun, 15 Sep 2013 21:01:51 GMT

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

Alessandro Rontani updated CAMEL-6754:
--------------------------------------

    Attachment: locale_patch.patch

the patch resolving this issue
                
> UnitUtilsTest cant manage a locale different from US
> ----------------------------------------------------
>
>                 Key: CAMEL-6754
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6754
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.13.0
>         Environment: Fedora release 18 (Spherical Cow) 64 bit, Italian locale
>            Reporter: Alessandro Rontani
>              Labels: patch, test
>         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