diff --git a/onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/serialization/mappings/CurrencyMappingFactory.java b/onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/serialization/mappings/CurrencyMappingFactory.java index 90a6eaa1..b70ab0d4 100644 --- a/onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/serialization/mappings/CurrencyMappingFactory.java +++ b/onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/serialization/mappings/CurrencyMappingFactory.java @@ -17,13 +17,15 @@ import org.onebusaway.csv_entities.schema.DecimalFieldMappingFactory; -import java.util.Locale; public class CurrencyMappingFactory extends DecimalFieldMappingFactory { public CurrencyMappingFactory() { /** - * We override the default locale to en_US so that we always use "." as the - * decimal separator, even in locales that default to using "," insteaad. + * Java Decimal format converts this to 'up to 40 digits before decimal + * and exactly two digits after decimal. + * + * DecimalFieldMappingFactory ignores locale if not provided + * */ super("#######################################.00", null); }