← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6368: Oops. Correcting r6367! Use Locale.ENGLISH when parsing double values.

 

------------------------------------------------------------
revno: 6368
committer: Bob Jolliffe <bobjolliffe@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-03-23 16:01:51 +0000
message:
  Oops.  Correcting r6367!  Use Locale.ENGLISH when parsing double values.
modified:
  dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/xml/Util.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/xml/Util.java'
--- dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/xml/Util.java	2012-03-23 15:55:20 +0000
+++ dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/xml/Util.java	2012-03-23 16:01:51 +0000
@@ -76,7 +76,7 @@
     public static String gmlToCoords(String coordinates, String decimalPlacesAsString) 
             throws ParseException
     {
-        NumberFormat nf = NumberFormat.getInstance(Locale.FRANCE);
+        NumberFormat nf = NumberFormat.getInstance(Locale.ENGLISH);
         
         int decimalPlaces = Integer.parseInt( decimalPlacesAsString);
         String formatString = "%."+decimalPlaces+"f,%."+decimalPlaces+"f";