You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Alessandro Rontani (JIRA)" <ji...@apache.org> on 2013/09/15 23:01:51 UTC

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

Alessandro Rontani created CAMEL-6754:
-----------------------------------------

             Summary: 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
         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