Changeset 17700 in josm for trunk/src


Ignore:
Timestamp:
2021-04-01T20:32:42+02:00 (3 years ago)
Author:
simon04
Message:

see #14596 - ShowStatusReportAction: add LANG, LC_ALL, file.encoding, sun.jnu.encoding (for all platforms)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java

    r17679 r17700  
    129129        }
    130130
     131        for (String name : Arrays.asList("LANG", "LC_ALL")) {
     132            String value = Utils.getSystemEnv(name);
     133            if (value != null) {
     134                text.format("Environment variable %s: %s%n", name, value);
     135            }
     136        }
     137        for (String name : Arrays.asList("file.encoding", "sun.jnu.encoding")) {
     138            String value = Utils.getSystemProperty(name);
     139            if (value != null) {
     140                text.format("System property %s: %s%n", name, value);
     141            }
     142        }
     143
    131144        if (PlatformManager.isPlatformUnixoid()) {
    132145            PlatformHookUnixoid platform = (PlatformHookUnixoid) PlatformManager.getPlatform();
     
    149162            if (atkWrapperDetails != null) {
    150163                text.format("Java ATK Wrapper package: %s%n", atkWrapperDetails);
    151             }
    152             String lang = System.getenv("LANG");
    153             if (lang != null) {
    154                 text.format("Environment variable LANG: %s%n", lang);
    155164            }
    156165            // Add dependencies details if found
Note: See TracChangeset for help on using the changeset viewer.