Changeset 19043 in josm for trunk/src/org


Ignore:
Timestamp:
2024-04-18T23:20:21+02:00 (5 weeks ago)
Author:
stoecker
Message:

drop COMPAT locale provider

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/I18n.java

    r18510 r19043  
    378378    static String setupJavaLocaleProviders() {
    379379        // Look up SPI providers first (for JosmDecimalFormatSymbolsProvider).
    380         // Enable CLDR locale provider on Java 8 to get additional languages, such as Khmer.
    381         // https://docs.oracle.com/javase/8/docs/technotes/guides/intl/enhancements.8.html#cldr
    382         // FIXME: This must be updated after we switch to Java 9.
    383         // See https://docs.oracle.com/javase/9/docs/api/java/util/spi/LocaleServiceProvider.html
    384380        try {
    385381            try {
     
    388384                I18n.class.getResourceAsStream("/META-INF/services/java.text.spi.DecimalFormatSymbolsProvider").close();
    389385                // Don't call Utils.updateSystemProperty to avoid spurious log at startup
    390                 return System.setProperty("java.locale.providers", "SPI,JRE,CLDR");
     386                return System.setProperty("java.locale.providers", "SPI,CLDR");
    391387            } catch (RuntimeException | IOException e) {
    392388                // Don't call Logging class, it may not be fully initialized yet
     
    398394        }
    399395        try {
    400             return System.setProperty("java.locale.providers", "JRE,CLDR");
     396            return System.setProperty("java.locale.providers", "CLDR");
    401397        } catch (SecurityException e) {
    402398            // Don't call Logging class, it may not be fully initialized yet
Note: See TracChangeset for help on using the changeset viewer.